lib/telegram/bot/client.rb in telegram-bot-0.10.0 vs lib/telegram/bot/client.rb in telegram-bot-0.10.1

- old
+ new

@@ -58,43 +58,49 @@ raise StaleChat, err_msg if StaleChat.match_response?(result) end raise Error, err_msg end + # Splited to the sections similar to API docs. %w( + deleteWebhook + getUpdates + getWebhookInfo + setWebhook + answerCallbackQuery - answerInlineQuery - editMessageCaption - editMessageReplyMarkup - editMessageText forwardMessage getChat getChatAdministrators getChatMember getChatMembersCount getFile - getGameHighScores getMe - getUpdates getUserProfilePhotos - getWebhookInfo kickChatMember leaveChat sendAudio sendChatAction sendContact sendDocument - sendGame sendLocation sendMessage sendPhoto sendSticker sendVenue sendVideo sendVoice - setGameScore - setWebhook unbanChatMember + + editMessageCaption + editMessageReplyMarkup + editMessageText + + answerInlineQuery + + getGameHighScores + sendGame + setGameScore ).each do |method| define_method(method.underscore) { |*args| request(method, *args) } end # Endpoint for low-level request. For easy host highjacking & instrumentation.