Use GroupAnonymousBot as a fallback sender for bots instead of 777000.

GitOrigin-RevId: 30e2ff3c9db2efc05b3bcbfd610ad8d6492ad66e
This commit is contained in:
levlam 2020-10-05 00:51:45 +03:00
parent ccc9169051
commit 77fff9c578

View File

@ -12538,7 +12538,11 @@ std::pair<DialogId, unique_ptr<MessagesManager::Message>> MessagesManager::creat
sender_user_id = UserId();
}
if (!is_broadcast_channel(dialog_id) && td_->auth_manager_->is_bot()) {
sender_user_id = td_->contacts_manager_->add_service_notifications_user();
if (dialog_id == sender_dialog_id) {
sender_user_id = td_->contacts_manager_->add_anonymous_bot_user();
} else {
sender_user_id = td_->contacts_manager_->add_service_notifications_user();
}
}
}
if (sender_dialog_id.is_valid()) {