diff options
| author | levlam <levlam@telegram.org> | 2023-06-05 14:51:32 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-06-05 14:51:32 +0300 |
| commit | a4bd45bd53f49b5ae84bfa981b9a12277641c216 (patch) | |
| tree | d3c968722b55dae5cfb4e6fb23165d255c59c36f /td/telegram/StoryContent.cpp | |
| parent | 71faaae22fea09eec6513613dd7353a1b33f4c2e (diff) | |
Add separate class td_api::storyVideo.
Diffstat (limited to 'td/telegram/StoryContent.cpp')
| -rw-r--r-- | td/telegram/StoryContent.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/td/telegram/StoryContent.cpp b/td/telegram/StoryContent.cpp index 94b583e83..4f7b63740 100644 --- a/td/telegram/StoryContent.cpp +++ b/td/telegram/StoryContent.cpp @@ -359,8 +359,9 @@ td_api::object_ptr<td_api::StoryContent> get_story_content_object(Td *td, const } case StoryContentType::Video: { const auto *s = static_cast<const StoryContentVideo *>(content); - return td_api::make_object<td_api::storyContentVideo>(td->videos_manager_->get_video_object(s->file_id_), - td->videos_manager_->get_video_object(s->alt_file_id_)); + return td_api::make_object<td_api::storyContentVideo>( + td->videos_manager_->get_story_video_object(s->file_id_), + td->videos_manager_->get_story_video_object(s->alt_file_id_)); } case StoryContentType::Unsupported: return td_api::make_object<td_api::storyContentUnsupported>(); |
