aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/BotCommand.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-06-22 04:34:29 +0300
committerlevlam <levlam@telegram.org>2021-06-22 04:34:29 +0300
commit79530d6a554d70d88db6b1e044831062d2fb119a (patch)
tree40b74e73d852a684a5fb60be8a013ae8768b4096 /td/telegram/BotCommand.h
parent9b85516cfd4239534d736e8d71b1e379d8769968 (diff)
Improve bot commands methods implementation.
Diffstat (limited to 'td/telegram/BotCommand.h')
-rw-r--r--td/telegram/BotCommand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/td/telegram/BotCommand.h b/td/telegram/BotCommand.h
index 4a54a32a4..e4e954bd3 100644
--- a/td/telegram/BotCommand.h
+++ b/td/telegram/BotCommand.h
@@ -29,10 +29,12 @@ class BotCommand {
BotCommand() = default;
BotCommand(string command, string description) : command_(std::move(command)), description_(std::move(description)) {
}
- BotCommand(telegram_api::object_ptr<telegram_api::botCommand> &&bot_command);
+ explicit BotCommand(telegram_api::object_ptr<telegram_api::botCommand> &&bot_command);
td_api::object_ptr<td_api::botCommand> get_bot_command_object() const;
+ telegram_api::object_ptr<telegram_api::botCommand> get_input_bot_command() const;
+
template <class StorerT>
void store(StorerT &storer) const {
td::store(command_, storer);