diff options
| author | levlam <levlam@telegram.org> | 2026-03-04 21:58:00 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-03-04 21:58:00 +0300 |
| commit | bddd0e2e877e30be22bd4e4cb5614877f494455f (patch) | |
| tree | a268fc07a8dc99aaafff6fa8da7b642206288e4a /td/telegram/Premium.cpp | |
| parent | bd893a3a8f3f7b3648fea60540d4e180701e7d2e (diff) | |
Support live photo in on_get_document.
Diffstat (limited to 'td/telegram/Premium.cpp')
| -rw-r--r-- | td/telegram/Premium.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/td/telegram/Premium.cpp b/td/telegram/Premium.cpp index 05c708ff0..9b3278c2a 100644 --- a/td/telegram/Premium.cpp +++ b/td/telegram/Premium.cpp @@ -348,8 +348,9 @@ class GetPremiumPromoQuery final : public Td::ResultHandler { continue; } - auto parsed_document = td_->documents_manager_->on_get_document( - move_tl_object_as<telegram_api::document>(video), DialogId(), false, nullptr, Document::Type::Animation); + auto parsed_document = + td_->documents_manager_->on_get_document(move_tl_object_as<telegram_api::document>(video), DialogId(), false, + false, nullptr, Document::Type::Animation); if (parsed_document.type != Document::Type::Animation) { LOG(ERROR) << "Receive " << parsed_document.type << " for " << promo->video_sections_[i]; |
