Support updateQuickReplies.

This commit is contained in:
levlam 2024-02-22 20:12:06 +03:00
parent c42a9d5652
commit dbc7bddf80
2 changed files with 5 additions and 4 deletions

View File

@ -4474,12 +4474,13 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateSmsJob> update,
promise.set_value(Unit());
}
// unsupported updates
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateQuickReplies> update, Promise<Unit> &&promise) {
td_->quick_reply_manager_->reload_quick_reply_shortcuts();
promise.set_value(Unit());
}
// unsupported updates
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateNewQuickReply> update, Promise<Unit> &&promise) {
promise.set_value(Unit());
}

View File

@ -652,10 +652,10 @@ class UpdatesManager final : public Actor {
void on_update(tl_object_ptr<telegram_api::updateSmsJob> update, Promise<Unit> &&promise);
// unsupported updates
void on_update(tl_object_ptr<telegram_api::updateQuickReplies> update, Promise<Unit> &&promise);
// unsupported updates
void on_update(tl_object_ptr<telegram_api::updateNewQuickReply> update, Promise<Unit> &&promise);
void on_update(tl_object_ptr<telegram_api::updateDeleteQuickReply> update, Promise<Unit> &&promise);