summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tdlib/td/td/telegram/AudiosManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/tdlib/td/td/telegram/AudiosManager.cpp')
-rw-r--r--protocols/Telegram/tdlib/td/td/telegram/AudiosManager.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/protocols/Telegram/tdlib/td/td/telegram/AudiosManager.cpp b/protocols/Telegram/tdlib/td/td/telegram/AudiosManager.cpp
index e1128d610c..ddceb1f713 100644
--- a/protocols/Telegram/tdlib/td/td/telegram/AudiosManager.cpp
+++ b/protocols/Telegram/tdlib/td/td/telegram/AudiosManager.cpp
@@ -1,5 +1,5 @@
//
-// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
+// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -271,11 +271,11 @@ tl_object_ptr<telegram_api::InputMedia> AudiosManager::get_input_media(
return nullptr;
}
if (file_view.has_remote_location() && !file_view.main_remote_location().is_web() && input_file == nullptr) {
- return make_tl_object<telegram_api::inputMediaDocument>(0, file_view.main_remote_location().as_input_document(), 0,
- string());
+ return make_tl_object<telegram_api::inputMediaDocument>(
+ 0, false /*ignored*/, file_view.main_remote_location().as_input_document(), 0, string());
}
if (file_view.has_url()) {
- return make_tl_object<telegram_api::inputMediaDocumentExternal>(0, file_view.url(), 0);
+ return make_tl_object<telegram_api::inputMediaDocumentExternal>(0, false /*ignored*/, file_view.url(), 0);
}
if (input_file != nullptr) {
@@ -298,8 +298,9 @@ tl_object_ptr<telegram_api::InputMedia> AudiosManager::get_input_media(
flags |= telegram_api::inputMediaUploadedDocument::THUMB_MASK;
}
return make_tl_object<telegram_api::inputMediaUploadedDocument>(
- flags, false /*ignored*/, false /*ignored*/, std::move(input_file), std::move(input_thumbnail), mime_type,
- std::move(attributes), vector<tl_object_ptr<telegram_api::InputDocument>>(), 0);
+ flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, std::move(input_file),
+ std::move(input_thumbnail), mime_type, std::move(attributes),
+ vector<tl_object_ptr<telegram_api::InputDocument>>(), 0);
} else {
CHECK(!file_view.has_remote_location());
}