From ba7a1bd895686c24dbdb97d6fcf9b74db16c3c29 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 29 Oct 2022 02:42:51 +0300 Subject: [PATCH] Don't send updateForumTopicInfo for bots just in case. --- td/telegram/ForumTopicManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/telegram/ForumTopicManager.cpp b/td/telegram/ForumTopicManager.cpp index 5b0d1bb2e..cf65425ed 100644 --- a/td/telegram/ForumTopicManager.cpp +++ b/td/telegram/ForumTopicManager.cpp @@ -326,6 +326,9 @@ td_api::object_ptr ForumTopicManager::get_update_f } void ForumTopicManager::send_update_forum_topic_info(DialogId dialog_id, const ForumTopicInfo *topic_info) const { + if (td_->auth_manager_->is_bot()) { + return; + } send_closure(G()->td(), &Td::send_update, get_update_forum_topic_info(dialog_id, topic_info)); }