             "\n" +
             "To reverse words, use /word_reverse word1 word2 word3..."
         
-        bot.respondPrivatelySync(helpText,
-            groupText: "\(message.from.firstName), please find usage instructions in a personal message.")
+        bot.respondPrivatelyAsync(helpText,
+            groupText: "\(message.from.first_name), please find usage instructions in a personal message.")
     }
     
     func settings() {

import Foundation
import TelegramBot

let environment = NSProcessInfo.processInfo().environment
guard let token = environment["WORD_REVERSE_BOT_TOKEN"] else {
    fatalError("Please set WORD_REVERSE_BOT_TOKEN environment variable")
}

let bot = TelegramBot(token: token)


    
    func start() {
        guard !started else {
            bot.respondAsync("@\(bot.username) already started.")
            return
        }
        started = true
        
        var startText: String
        if message.chat.type != .privateChat {
            startText = "@\(bot.username) started. Use '/reverse some text' to reverse the text.\n"
        } else {
            startText = "@\(bot.username) started. Please type some text to reverse.\n"
        }
        startText += "To stop, type /stop"
        
        bot.respondAsync(startText)
    }
    
    func stop() {
        guard started else {
            bot.respondAsync("@\(bot.username) already stopped.")
            return
        }
        started = false
