diff options
| author | levlam <levlam@telegram.org> | 2024-01-08 01:44:58 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-01-08 01:44:58 +0300 |
| commit | 90b8acff679c483243cb7262984638140c9229b6 (patch) | |
| tree | 9dc28fde6d937313d30f3433eb7c9687679bab59 /td/telegram/BotCommand.h | |
| parent | b4ac2653cd8858858e579a50fdd880fcc370f0ac (diff) | |
Add and use BotCommands::update_all_bot_commands.
Diffstat (limited to 'td/telegram/BotCommand.h')
| -rw-r--r-- | td/telegram/BotCommand.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/td/telegram/BotCommand.h b/td/telegram/BotCommand.h index 0956fb99c..61a80d8a3 100644 --- a/td/telegram/BotCommand.h +++ b/td/telegram/BotCommand.h @@ -61,10 +61,13 @@ class BotCommands { public: BotCommands() = default; + BotCommands(UserId bot_user_id, vector<telegram_api::object_ptr<telegram_api::botCommand>> &&bot_commands); td_api::object_ptr<td_api::botCommands> get_bot_commands_object(Td *td) const; + static bool update_all_bot_commands(vector<BotCommands> &all_bot_commands, BotCommands &&bot_commands); + UserId get_bot_user_id() const { return bot_user_id_; } |
