summaryrefslogtreecommitdiff
path: root/include/tgbot/Api.h
diff options
context:
space:
mode:
authorsebest <sebest@seba.seba>2020-05-25 15:49:44 -0300
committersebest <sebest@seba.seba>2020-05-25 15:49:44 -0300
commitffc3c38882d669ea6b2abeea5c0f7c7b322fa6e7 (patch)
tree0394904a1d5c09662825e77ee9ad6ec137b8ee64 /include/tgbot/Api.h
parent6436825328cd3bf4a1c964bc84638bc93cfaff1e (diff)
* 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;