Skip to content

Commit

Permalink
Always reget missed message for bots.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Oct 20, 2024
1 parent 33d14d6 commit 89b22ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Unit> result) {
Expand Down

0 comments on commit 89b22ed

Please sign in to comment.