From f4f46c9a797f3fa860e7e5b97e95ec76f7ec63fa Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 7 Dec 2023 13:34:37 +0300 Subject: [PATCH] Don't try to process stories inside message content by bots. --- td/telegram/MessageContent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index 697f0bccc..68841ad5f 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -5713,7 +5713,7 @@ unique_ptr get_message_content(Td *td, FormattedText message, LOG(ERROR) << "Receive " << to_string(media); break; } - if (media->story_ != nullptr) { + if (media->story_ != nullptr && !td->auth_manager_->is_bot()) { auto actual_story_id = td->story_manager_->on_get_story(dialog_id, std::move(media->story_)); if (story_id != actual_story_id) { LOG(ERROR) << "Receive " << actual_story_id << " instead of " << story_id;