telegram-bot-swift
telegram-bot-swift copied to clipboard
Allow ignoring requestAsync return value
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
}