diff --git a/CHANGELOG.md b/CHANGELOG.md index b3daf4c..dcc10a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Unreleased - Rails 8.0 support +- Update to Bot API 8.0 # 0.16.4 diff --git a/lib/telegram/bot/client/api_methods.txt b/lib/telegram/bot/client/api_methods.txt index d956000..2f116e2 100644 --- a/lib/telegram/bot/client/api_methods.txt +++ b/lib/telegram/bot/client/api_methods.txt @@ -1,5 +1,5 @@ # Generated with bin/fetch-telegram-methods -# Bot API 7.9 +# Bot API 8.0 getUpdates setWebhook @@ -31,6 +31,7 @@ sendDice sendChatAction setMessageReaction getUserProfilePhotos +setUserEmojiStatus getFile banChatMember unbanChatMember @@ -118,9 +119,12 @@ setStickerSetTitle setStickerSetThumbnail setCustomEmojiStickerSetThumbnail deleteStickerSet +getAvailableGifts +sendGift answerInlineQuery answerWebAppQuery +savePreparedInlineMessage sendInvoice createInvoiceLink @@ -128,6 +132,7 @@ answerShippingQuery answerPreCheckoutQuery getStarTransactions refundStarPayment +editUserStarSubscription setPassportDataErrors diff --git a/lib/telegram/bot/updates_controller.rb b/lib/telegram/bot/updates_controller.rb index d89f804..63a7b78 100644 --- a/lib/telegram/bot/updates_controller.rb +++ b/lib/telegram/bot/updates_controller.rb @@ -105,6 +105,7 @@ class UpdatesController < AbstractController::Base # rubocop:disable Metrics/Cla callback_query shipping_query pre_checkout_query + purchased_paid_media poll poll_answer my_chat_member @@ -112,7 +113,6 @@ class UpdatesController < AbstractController::Base # rubocop:disable Metrics/Cla chat_join_request chat_boost removed_chat_boost - pre_checkout_query ].freeze) class << self diff --git a/spec/telegram/bot/updates_controller/typed_update_spec.rb b/spec/telegram/bot/updates_controller/typed_update_spec.rb index 37c8c62..bba19b3 100644 --- a/spec/telegram/bot/updates_controller/typed_update_spec.rb +++ b/spec/telegram/bot/updates_controller/typed_update_spec.rb @@ -28,6 +28,7 @@ message_reaction_count chat_boost removed_chat_boost + purchased_paid_media pre_checkout_query ]). map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.