aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StoryContent.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-03-04 21:58:00 +0300
committerlevlam <levlam@telegram.org>2026-03-04 21:58:00 +0300
commitbddd0e2e877e30be22bd4e4cb5614877f494455f (patch)
treea268fc07a8dc99aaafff6fa8da7b642206288e4a /td/telegram/StoryContent.cpp
parentbd893a3a8f3f7b3648fea60540d4e180701e7d2e (diff)
Support live photo in on_get_document.
Diffstat (limited to 'td/telegram/StoryContent.cpp')
-rw-r--r--td/telegram/StoryContent.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/td/telegram/StoryContent.cpp b/td/telegram/StoryContent.cpp
index 16a40d31d..7f9f5d380 100644
--- a/td/telegram/StoryContent.cpp
+++ b/td/telegram/StoryContent.cpp
@@ -255,7 +255,7 @@ unique_ptr<StoryContent> get_story_content(Td *td, tl_object_ptr<telegram_api::M
}
CHECK(document_id == telegram_api::document::ID);
auto parsed_document = td->documents_manager_->on_get_document(
- telegram_api::move_object_as<telegram_api::document>(document_ptr), owner_dialog_id, false, nullptr,
+ telegram_api::move_object_as<telegram_api::document>(document_ptr), owner_dialog_id, false, false, nullptr,
Document::Type::Video, DocumentsManager::Subtype::Story);
if (parsed_document.empty() || parsed_document.type != Document::Type::Video) {
LOG(ERROR) << "Receive a story with " << parsed_document;
@@ -272,8 +272,8 @@ unique_ptr<StoryContent> get_story_content(Td *td, tl_object_ptr<telegram_api::M
} else {
CHECK(alt_document_id == telegram_api::document::ID);
auto parsed_alt_document = td->documents_manager_->on_get_document(
- telegram_api::move_object_as<telegram_api::document>(alt_document_ptr), owner_dialog_id, false, nullptr,
- Document::Type::Video, DocumentsManager::Subtype::Story);
+ telegram_api::move_object_as<telegram_api::document>(alt_document_ptr), owner_dialog_id, false, false,
+ nullptr, Document::Type::Video, DocumentsManager::Subtype::Story);
if (parsed_alt_document.empty() || parsed_alt_document.type != Document::Type::Video) {
LOG(ERROR) << "Receive invalid alternative document " << parsed_alt_document;
} else {