     }
 
     func reverseText(context: Context) -> Bool {
-		guard started(in: context.chatId) else { return false }
+        guard let chatId = context.chatId else { return false }
+		guard started(in: chatId) else { return false }
 		
         let text = context.args.scanRestOfString()
 	

    }
    
	func settings(context: Context) -> Bool {
		guard let from = context.message.from else { return false }
        let settingsText = "Settings\n" +
            "\n" +
            "No settings are available for this bot."

	
	try router.process(update: update)
}
print("Server stopped due to error: \(bot.lastError.unwrapOptional)")
exit(1)
