rapierorg / telegram-bot-swift

Telegram Bot SDK for Swift (unofficial)
https://github.com/rapierorg/telegram-bot-swift/wiki
Apache License 2.0
374 stars 63 forks source link

Allow ignoring requestAsync return value #13

Open zmeyc opened 8 years ago

zmeyc commented 8 years ago

Currently it's mandatory to specify a result with type (it will be automatically deserialized from json). Allow omitting it.

    bot.requestAsync("sendChatAction",
                     ["chat_id": context.chatId, "action": "typing"]) {
        (result: Bool?, error: DataTaskError?) in
    }