Ignore anonymous status for bots.

GitOrigin-RevId: c3b5316fcb2a538655c4a2eeb09ef5df08794212
This commit is contained in:
levlam 2020-10-19 21:43:44 +03:00
parent add7211707
commit 06bb6b4b11

View File

@ -21774,6 +21774,10 @@ bool MessagesManager::is_anonymous_administrator(UserId sender_user_id, DialogId
}
CHECK(dialog_id.is_valid());
if (td_->contacts_manager_->is_user_bot(sender_user_id)) {
return false;
}
if (dialog_id.get_type() != DialogType::Channel || is_broadcast_channel(dialog_id)) {
return false;
}