lib/telegram/bot/client.rb in telegram-bot-0.11.3 vs lib/telegram/bot/client.rb in telegram-bot-0.12.0

- old
+ new

@@ -3,11 +3,11 @@ require 'active_support/core_ext/string/inflections' require 'active_support/core_ext/hash/keys' module Telegram module Bot - class Client + class Client # rubocop:disable ClassLength URL_TEMPLATE = 'https://api.telegram.org/bot%s/'.freeze autoload :TypedResponse, 'telegram/bot/client/typed_response' extend Initializers prepend Async @@ -68,37 +68,59 @@ getUpdates getWebhookInfo setWebhook answerCallbackQuery + deleteChatPhoto + exportChatInviteLink forwardMessage getChat getChatAdministrators getChatMember getChatMembersCount getFile getMe getUserProfilePhotos kickChatMember leaveChat + pinChatMessage + promoteChatMember + restrictChatMember sendAudio sendChatAction sendContact sendDocument sendLocation sendMessage sendPhoto - sendSticker sendVenue sendVideo + sendVideoNote sendVoice + setChatDescription + setChatPhoto + setChatTitle unbanChatMember + unpinChatMessage + deleteMessage editMessageCaption editMessageReplyMarkup editMessageText + sendSticker + getStickerSet + uploadStickerFile + createNewStickerSet + addStickerToSet + setStickerPositionInSet + deleteStickerFromSet + answerInlineQuery + + sendInvoice + answerShippingQuery + answerPreCheckoutQuery getGameHighScores sendGame setGameScore ).each do |method|