From ffc3c38882d669ea6b2abeea5c0f7c7b322fa6e7 Mon Sep 17 00:00:00 2001 From: sebest Date: Mon, 25 May 2020 15:49:44 -0300 Subject: * add SetMyCommand to the api --- include/tgbot/Api.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/tgbot/Api.h') 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 #include @@ -811,6 +812,11 @@ public: Poll::Ptr stopPoll(std::int64_t chatId, std::int64_t messageId, InlineKeyboardMarkup::Ptr replyMarkup = std::make_shared()) const; + + bool setMyCommands(const std::vector& commands) const; + + std::vector getMyCommands() const; + private: boost::property_tree::ptree sendRequest(const std::string& method, const std::vector& args = std::vector()) const; -- cgit v1.2.3