aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/BotCommand.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-01-08 01:44:58 +0300
committerlevlam <levlam@telegram.org>2024-01-08 01:44:58 +0300
commit90b8acff679c483243cb7262984638140c9229b6 (patch)
tree9dc28fde6d937313d30f3433eb7c9687679bab59 /td/telegram/BotCommand.h
parentb4ac2653cd8858858e579a50fdd880fcc370f0ac (diff)
Add and use BotCommands::update_all_bot_commands.
Diffstat (limited to 'td/telegram/BotCommand.h')
-rw-r--r--td/telegram/BotCommand.h3
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_;
}