diff --git a/aiogram/types/chat.py b/aiogram/types/chat.py index 45f5fbcf..e2ea0e9f 100644 --- a/aiogram/types/chat.py +++ b/aiogram/types/chat.py @@ -404,6 +404,21 @@ class Chat(base.TelegramObject): """ return await self.bot.set_chat_sticker_set(self.id, sticker_set_name=sticker_set_name) + async def delete_sticker_set(self) -> base.Boolean: + """ + Use this method to delete a group sticker set from a supergroup. + The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. + + Use the field can_set_sticker_set optionally returned in getChat requests + to check if the bot can use this method. + + Source: https://core.telegram.org/bots/api#deletechatstickerset + + :return: Returns True on success + :rtype: :obj:`base.Boolean` + """ + return self.bot.delete_chat_sticker_set(self.id) + async def do(self, action): """ Use this method when you need to tell the user that something is happening on the bot's side.