Force result of get_imput_media for bots.
GitOrigin-RevId: cbcd38739402f494ff1b687d67d6bd3677c8e9fc
This commit is contained in:
parent
5e02099069
commit
e45e13c77f
@ -18835,7 +18835,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, false);
|
||||
auto input_media = get_input_media(content, td_, m->ttl, td_->auth_manager_->is_bot());
|
||||
if (input_media == nullptr) {
|
||||
if (content_type == MessageContentType::Game || content_type == MessageContentType::Poll) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user