telegram-bot-swift icon indicating copy to clipboard operation
telegram-bot-swift copied to clipboard

Allow ignoring requestAsync return value

Open zmeyc opened this issue 8 years ago • 0 comments

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
    }

zmeyc avatar May 30 '16 22:05 zmeyc