aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/BotCommand.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-06-22 04:25:15 +0300
committerlevlam <levlam@telegram.org>2021-06-22 04:25:15 +0300
commit9b85516cfd4239534d736e8d71b1e379d8769968 (patch)
tree58e4b80fb0c14286b0160a23ca0b07fdaf14565e /td/telegram/BotCommand.h
parente8b32d9b05f68b67d072b98ee47753c71ab95d49 (diff)
Move bot command handling functions to BotCommand.cpp.
Diffstat (limited to 'td/telegram/BotCommand.h')
-rw-r--r--td/telegram/BotCommand.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/td/telegram/BotCommand.h b/td/telegram/BotCommand.h
index 33444f3b5..4a54a32a4 100644
--- a/td/telegram/BotCommand.h
+++ b/td/telegram/BotCommand.h
@@ -10,6 +10,8 @@
#include "td/telegram/telegram_api.h"
#include "td/telegram/UserId.h"
+#include "td/actor/PromiseFuture.h"
+
#include "td/utils/common.h"
#include "td/utils/tl_helpers.h"
@@ -85,4 +87,13 @@ inline bool operator!=(const BotCommands &lhs, const BotCommands &rhs) {
return !(lhs == rhs);
}
+void set_commands(Td *td, td_api::object_ptr<td_api::BotCommandScope> &&scope_ptr, string &&language_code,
+ vector<td_api::object_ptr<td_api::botCommand>> &&commands, Promise<Unit> &&promise);
+
+void delete_commands(Td *td, td_api::object_ptr<td_api::BotCommandScope> &&scope_ptr, string &&language_code,
+ Promise<Unit> &&promise);
+
+void get_commands(Td *td, td_api::object_ptr<td_api::BotCommandScope> &&scope_ptr, string &&language_code,
+ Promise<td_api::object_ptr<td_api::botCommands>> &&promise);
+
} // namespace td