From 70670d7217fec8bc73f79de95dd1d7159c225600 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 6 Sep 2023 17:06:21 +0300 Subject: [PATCH] Explicitly disallow message updates with "channel_chat_created" content. --- telegram-bot-api/Client.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 67bcf1d..cea1026 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -11092,6 +11092,11 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptris_supergroup && message->content_->get_id() == td_api::messageSupergroupChatCreate::ID) { + // don't send message about channel creation, even the bot was added at exactly the same time + return true; + } } if (message->self_destruct_time_ > 0) {