diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index b4a0ae313..6f1eb0117 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -3087,6 +3087,22 @@ void UpdatesManager::process_qts_update(tl_object_ptr &&up message_id.get(), date, std::move(message_reactions))); break; } + case telegram_api::updateBotBusinessConnect::ID: { + auto update = move_tl_object_as(update_ptr); + break; + } + case telegram_api::updateBotNewBusinessMessage::ID: { + auto update = move_tl_object_as(update_ptr); + break; + } + case telegram_api::updateBotEditBusinessMessage::ID: { + auto update = move_tl_object_as(update_ptr); + break; + } + case telegram_api::updateBotDeleteBusinessMessage::ID: { + auto update = move_tl_object_as(update_ptr); + break; + } default: UNREACHABLE(); break; @@ -3875,6 +3891,10 @@ bool UpdatesManager::is_qts_update(const telegram_api::Update *update) { case telegram_api::updateBotChatBoost::ID: case telegram_api::updateBotMessageReaction::ID: case telegram_api::updateBotMessageReactions::ID: + case telegram_api::updateBotBusinessConnect::ID: + case telegram_api::updateBotNewBusinessMessage::ID: + case telegram_api::updateBotEditBusinessMessage::ID: + case telegram_api::updateBotDeleteBusinessMessage::ID: return true; default: return false; @@ -3901,6 +3921,14 @@ int32 UpdatesManager::get_update_qts(const telegram_api::Update *update) { return static_cast(update)->qts_; case telegram_api::updateBotMessageReactions::ID: return static_cast(update)->qts_; + case telegram_api::updateBotBusinessConnect::ID: + return static_cast(update)->qts_; + case telegram_api::updateBotNewBusinessMessage::ID: + return static_cast(update)->qts_; + case telegram_api::updateBotEditBusinessMessage::ID: + return static_cast(update)->qts_; + case telegram_api::updateBotDeleteBusinessMessage::ID: + return static_cast(update)->qts_; default: return 0; } @@ -4505,25 +4533,29 @@ void UpdatesManager::on_update(tl_object_ptr update, Promise &&promise) { - promise.set_value(Unit()); + auto qts = update->qts_; + add_pending_qts_update(std::move(update), qts, std::move(promise)); } void UpdatesManager::on_update(tl_object_ptr update, Promise &&promise) { - promise.set_value(Unit()); + auto qts = update->qts_; + add_pending_qts_update(std::move(update), qts, std::move(promise)); } void UpdatesManager::on_update(tl_object_ptr update, Promise &&promise) { - promise.set_value(Unit()); + auto qts = update->qts_; + add_pending_qts_update(std::move(update), qts, std::move(promise)); } void UpdatesManager::on_update(tl_object_ptr update, Promise &&promise) { - promise.set_value(Unit()); + auto qts = update->qts_; + add_pending_qts_update(std::move(update), qts, std::move(promise)); } +// unsupported updates + } // namespace td diff --git a/td/telegram/UpdatesManager.h b/td/telegram/UpdatesManager.h index e4d41868f..04f0f5a59 100644 --- a/td/telegram/UpdatesManager.h +++ b/td/telegram/UpdatesManager.h @@ -660,8 +660,6 @@ class UpdatesManager final : public Actor { void on_update(tl_object_ptr update, Promise &&promise); - // unsupported updates - void on_update(tl_object_ptr update, Promise &&promise); void on_update(tl_object_ptr update, Promise &&promise); @@ -669,6 +667,8 @@ class UpdatesManager final : public Actor { void on_update(tl_object_ptr update, Promise &&promise); void on_update(tl_object_ptr update, Promise &&promise); + + // unsupported updates }; } // namespace td