From 89b22ed7e77cd4f6f46bf893ef887843bde49a3b Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 20 Oct 2024 15:30:23 +0300 Subject: [PATCH] Always reget missed message for bots. --- td/telegram/MessagesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 880aebd0754d..b0295781de08 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -8660,7 +8660,7 @@ void MessagesManager::after_get_difference() { LOG(ERROR) << "Receive updateMessageId from " << old_message_id << " to " << message_full_id << " but not receive corresponding message, last_new_message_id = " << d->last_new_message_id; } - if (message_id <= d->last_new_message_id) { + if (message_id <= d->last_new_message_id || td_->auth_manager_->is_bot()) { get_message_from_server( message_full_id, PromiseCreator::lambda([actor_id = actor_id(this), message_full_id, old_message_id](Result result) {