diff options
| author | levlam <levlam@telegram.org> | 2020-01-16 05:18:06 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2020-01-16 05:18:06 +0300 |
| commit | 4ec628fc78421493ad1ba397f64c33cb21dd6a15 (patch) | |
| tree | 733d3e6a0f9ab6adccf9122da2ee7ede254899bc /td/telegram/Game.cpp | |
| parent | b9d1b80f6a373443be2ebb8c8ec96fa1cf1af663 (diff) | |
Add Game::has_input_media.
GitOrigin-RevId: 13be31df3a93d495628f64d7cedc767a6e030a68
Diffstat (limited to 'td/telegram/Game.cpp')
| -rw-r--r-- | td/telegram/Game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/td/telegram/Game.cpp b/td/telegram/Game.cpp index 1498db190..36e37dfaf 100644 --- a/td/telegram/Game.cpp +++ b/td/telegram/Game.cpp @@ -97,6 +97,10 @@ tl_object_ptr<td_api::game> Game::get_game_object(Td *td) const { td->animations_manager_->get_animation_object(animation_file_id_, "get_game_object")); } +bool Game::has_input_media() const { + return bot_user_id_.is_valid(); +} + tl_object_ptr<telegram_api::inputMediaGame> Game::get_input_media_game(const Td *td) const { auto input_user = td->contacts_manager_->get_input_user(bot_user_id_); CHECK(input_user != nullptr); |
