Fix file reference repair for bots.

GitOrigin-RevId: a73a960140e6b6866d8e53dd312a25258ea03d95
This commit is contained in:
levlam 2020-05-07 01:54:47 +03:00
parent e9118c7bd5
commit bc5415ba88

View File

@ -18838,7 +18838,7 @@ void MessagesManager::do_send_message(DialogId dialog_id, const Message *m, vect
on_secret_message_media_uploaded(dialog_id, m, std::move(secret_input_media), file_id, thumbnail_file_id);
}
} else {
auto input_media = get_input_media(content, td_, m->ttl, td_->auth_manager_->is_bot());
auto input_media = get_input_media(content, td_, m->ttl, td_->auth_manager_->is_bot() && bad_parts.empty());
if (input_media == nullptr) {
if (content_type == MessageContentType::Game || content_type == MessageContentType::Poll) {
return;