Always send video by bots using inputMessageVideo.

GitOrigin-RevId: eccc660e7c91139386a144db52c8f44719401bd2
This commit is contained in:
levlam 2020-01-23 00:21:23 +03:00
parent 32b3a75676
commit 7bc9e93581

View File

@ -260,11 +260,8 @@ tl_object_ptr<telegram_api::InputMedia> VideosManager::get_input_media(
if (!video->file_name.empty()) {
attributes.push_back(make_tl_object<telegram_api::documentAttributeFilename>(video->file_name));
}
int32 flags = 0;
int32 flags = telegram_api::inputMediaUploadedDocument::NOSOUND_VIDEO_MASK;
vector<tl_object_ptr<telegram_api::InputDocument>> added_stickers;
if (ttl != 0 || !td_->auth_manager_->is_bot()) {
flags |= telegram_api::inputMediaUploadedDocument::NOSOUND_VIDEO_MASK;
}
if (video->has_stickers) {
flags |= telegram_api::inputMediaUploadedDocument::STICKERS_MASK;
added_stickers = td_->file_manager_->get_input_documents(video->sticker_file_ids);