diff options
| author | levlam <levlam@telegram.org> | 2024-11-25 17:38:32 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-11-25 17:38:32 +0300 |
| commit | 3c0e7c1a16af15b541485356763d4dc62ee6be58 (patch) | |
| tree | cd8d2d9c5fc6eb2ea66935940acd1b8e7b764762 /td/telegram/Game.cpp | |
| parent | 83a8d925f5b9fcdc984f66952e8d9b7880d57992 (diff) | |
Add separate file types for self-destructing files.
Diffstat (limited to 'td/telegram/Game.cpp')
| -rw-r--r-- | td/telegram/Game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/Game.cpp b/td/telegram/Game.cpp index d89dd2216..e6b57b8a9 100644 --- a/td/telegram/Game.cpp +++ b/td/telegram/Game.cpp @@ -44,8 +44,8 @@ Game::Game(Td *td, string title, string description, tl_object_ptr<telegram_api: if (document != nullptr) { int32 document_id = document->get_id(); if (document_id == telegram_api::document::ID) { - auto parsed_document = - td->documents_manager_->on_get_document(move_tl_object_as<telegram_api::document>(document), owner_dialog_id); + auto parsed_document = td->documents_manager_->on_get_document( + move_tl_object_as<telegram_api::document>(document), owner_dialog_id, false); if (parsed_document.type == Document::Type::Animation) { animation_file_id_ = parsed_document.file_id; } else { |
