From 5aaaa79ee2441dd36a3af4e1c869717bf9b2c927 Mon Sep 17 00:00:00 2001 From: llnulldisk <48621230+llnulldisk@users.noreply.github.com> Date: Mon, 15 Apr 2024 12:46:10 +0200 Subject: Update to Bot API 6.8 --- include/tgbot/Api.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/tgbot/Api.h') 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 @@ -1349,6 +1349,17 @@ public: */ bool unhideGeneralForumTopic(boost::variant 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 chatId) const; + /** * @brief Use this method to send answers to callback queries sent from inline keyboards. * -- cgit v1.2.3