diff options
author | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2024-04-15 12:46:10 +0200 |
---|---|---|
committer | llnulldisk <48621230+llnulldisk@users.noreply.github.com> | 2024-04-15 12:46:10 +0200 |
commit | 5aaaa79ee2441dd36a3af4e1c869717bf9b2c927 (patch) | |
tree | 9af4fba1144d22dcce49d99dbabebb78b6edd0a6 /include/tgbot/Api.h | |
parent | fbeb025e21fad2fa1fb6cd5ae186eabf9a349091 (diff) |
Update to Bot API 6.8
Diffstat (limited to 'include/tgbot/Api.h')
-rw-r--r-- | include/tgbot/Api.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 5efe50f..c3df15c 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -1350,6 +1350,17 @@ public: bool unhideGeneralForumTopic(boost::variant<std::int64_t, std::string> chatId) const; /** + * @brief Use this method to clear the list of pinned messages in a General forum topic. + * + * The bot must be an administrator in the chat for this to work and must have the canPinMessages administrator right in the supergroup. + * + * @param chatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) + * + * @return Returns True on success. + */ + bool unpinAllGeneralForumTopicMessages(boost::variant<std::int64_t, std::string> chatId) const; + + /** * @brief Use this method to send answers to callback queries sent from inline keyboards. * * The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. |