diff options
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; |