From da22ecbe79d5a6805818121c6de530ee94757d12 Mon Sep 17 00:00:00 2001 From: Max Melentiev Date: Sun, 12 May 2024 16:50:33 -0400 Subject: [PATCH] Update to Bot API 7.3 --- lib/telegram/bot/client/api_methods.txt | 4 +++- lib/telegram/bot/updates_controller.rb | 4 ++++ spec/telegram/bot/updates_controller/typed_update_spec.rb | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/telegram/bot/client/api_methods.txt b/lib/telegram/bot/client/api_methods.txt index fd5a489..9d17ace 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.0 +# Bot API 7.3 getUpdates setWebhook @@ -74,6 +74,7 @@ unhideGeneralForumTopic unpinAllGeneralForumTopicMessages answerCallbackQuery getUserChatBoosts +getBusinessConnection setMyCommands deleteMyCommands getMyCommands @@ -106,6 +107,7 @@ createNewStickerSet addStickerToSet setStickerPositionInSet deleteStickerFromSet +replaceStickerInSet setStickerEmojiList setStickerKeywords setStickerMaskPosition diff --git a/lib/telegram/bot/updates_controller.rb b/lib/telegram/bot/updates_controller.rb index 2dba9ad..476f1b8 100644 --- a/lib/telegram/bot/updates_controller.rb +++ b/lib/telegram/bot/updates_controller.rb @@ -94,6 +94,10 @@ module Telegram edited_message channel_post edited_channel_post + business_connection + business_message + edited_business_message + deleted_business_messages message_reaction message_reaction_count inline_query diff --git a/spec/telegram/bot/updates_controller/typed_update_spec.rb b/spec/telegram/bot/updates_controller/typed_update_spec.rb index 1f2018b..9103132 100644 --- a/spec/telegram/bot/updates_controller/typed_update_spec.rb +++ b/spec/telegram/bot/updates_controller/typed_update_spec.rb @@ -20,6 +20,10 @@ RSpec.describe Telegram::Bot::UpdatesController::TypedUpdate do chat_join_request # TODO: remove when added to telegram-bot-types + business_connection + business_message + edited_business_message + deleted_business_messages message_reaction message_reaction_count chat_boost