Support telegram_api::updateNewQuickReply.

This commit is contained in:
levlam 2024-02-22 23:14:08 +03:00
parent de8afdd0a8
commit 70b45fc3db
2 changed files with 5 additions and 4 deletions

View File

@ -4479,12 +4479,13 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateQuickReplies> u
promise.set_value(Unit());
}
// unsupported updates
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateNewQuickReply> 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::updateDeleteQuickReply> update, Promise<Unit> &&promise) {
promise.set_value(Unit());
}

View File

@ -654,10 +654,10 @@ class UpdatesManager final : public Actor {
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);
// unsupported updates
void on_update(tl_object_ptr<telegram_api::updateDeleteQuickReply> update, Promise<Unit> &&promise);
void on_update(tl_object_ptr<telegram_api::updateQuickReplyMessage> update, Promise<Unit> &&promise);