From 6b576bb2e3188e29a6b106909d0c4c6d38d50c98 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 12 Oct 2023 19:26:18 +0300 Subject: [PATCH] Don't postpone updates for bots before first getDifference. --- td/telegram/UpdatesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index 6eaa87831..580c42d20 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -257,7 +257,7 @@ UpdatesManager::UpdatesManager(Td *td, ActorShared<> parent) : td_(td), parent_( pending_audio_transcription_timeout_.set_callback(on_pending_audio_transcription_timeout_callback); pending_audio_transcription_timeout_.set_callback_data(static_cast(td_)); - if (td_->option_manager_->get_option_integer("since_last_open") < 3600) { + if (td_->option_manager_->get_option_integer("since_last_open") < 3600 && !td_->auth_manager_->is_bot()) { finished_first_get_difference_ = true; } }