mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-29 05:35:48 +01:00
Explicitly disallow message updates with "channel_chat_created" content.
This commit is contained in:
parent
87cdeaadb6
commit
70670d7217
@ -11092,6 +11092,11 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
|
||||
// don't send messages received before join or getting authorization
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!supergroup_info->is_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) {
|
||||
|
Loading…
Reference in New Issue
Block a user