summaryrefslogtreecommitdiff
path: root/include/tgbot/Api.h
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2020-08-21 01:41:36 +0300
committerGitHub <noreply@github.com>2020-08-21 01:41:36 +0300
commit4009b7ea603dcd7f21c6e852497daba7b0a1a6b3 (patch)
tree6dd10e3c92accb9aa250bc30862a59f6f7d9067b /include/tgbot/Api.h
parent3230b1b5d84a7a948324949eb607082dc40fe01e (diff)
parentffc3c38882d669ea6b2abeea5c0f7c7b322fa6e7 (diff)
Merge pull request #143 from sebest06/master
* add SetMyCommand to the api
Diffstat (limited to 'include/tgbot/Api.h')
-rw-r--r--include/tgbot/Api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h
index eddbe50..e48da6f 100644
--- a/include/tgbot/Api.h
+++ b/include/tgbot/Api.h
@@ -20,6 +20,7 @@
#include "tgbot/types/GameHighScore.h"
#include "tgbot/types/LabeledPrice.h"
#include "tgbot/types/ShippingOption.h"
+#include "tgbot/types/BotCommand.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/variant.hpp>
@@ -811,6 +812,11 @@ public:
Poll::Ptr stopPoll(std::int64_t chatId, std::int64_t messageId, InlineKeyboardMarkup::Ptr replyMarkup = std::make_shared<InlineKeyboardMarkup>()) const;
+
+ bool setMyCommands(const std::vector<BotCommand::Ptr>& commands) const;
+
+ std::vector<BotCommand::Ptr> getMyCommands() const;
+
private:
boost::property_tree::ptree sendRequest(const std::string& method, const std::vector<HttpReqArg>& args = std::vector<HttpReqArg>()) const;