lib/telegram/bot/api.rb in telegram-bot-ruby-0.14.0 vs lib/telegram/bot/api.rb in telegram-bot-ruby-0.15.0

- old
+ new

@@ -1,9 +1,9 @@ module Telegram module Bot class Api # rubocop:disable ClassLength - ENDPOINTS = %w( + ENDPOINTS = %w[ getUpdates setWebhook deleteWebhook getWebhookInfo getMe sendMessage forwardMessage sendPhoto sendAudio sendDocument sendVideo sendVoice sendVideoNote sendMediaGroup sendLocation editMessageLiveLocation stopMessageLiveLocation sendVenue sendContact sendChatAction getUserProfilePhotos getFile kickChatMember unbanChatMember @@ -17,11 +17,12 @@ setStickerPositionInSet deleteStickerFromSet answerInlineQuery sendInvoice answerShippingQuery answerPreCheckoutQuery sendGame setGameScore getGameHighScores setPassportDataErrors editMessageMedia sendAnimation sendPoll stopPoll setChatPermissions setChatAdministratorCustomTitle sendDice getMyCommands setMyCommands - setStickerSetThumb logOut close copyMessage - ).freeze + setStickerSetThumb logOut close copyMessage createChatInviteLink + editChatInviteLink revokeChatInviteLink + ].freeze REPLY_MARKUP_TYPES = [ Telegram::Bot::Types::ReplyKeyboardMarkup, Telegram::Bot::Types::ReplyKeyboardRemove, Telegram::Bot::Types::ForceReply, Telegram::Bot::Types::InlineKeyboardMarkup