diff options
author | sebest <sebest@seba.seba> | 2020-05-25 15:49:44 -0300 |
---|---|---|
committer | sebest <sebest@seba.seba> | 2020-05-25 15:49:44 -0300 |
commit | ffc3c38882d669ea6b2abeea5c0f7c7b322fa6e7 (patch) | |
tree | 0394904a1d5c09662825e77ee9ad6ec137b8ee64 /include/tgbot/Api.h | |
parent | 6436825328cd3bf4a1c964bc84638bc93cfaff1e (diff) |
* add SetMyCommand to the api
Diffstat (limited to 'include/tgbot/Api.h')
-rw-r--r-- | include/tgbot/Api.h | 6 |
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; |