Add new shortcut

This commit is contained in:
Gabben 2020-01-01 00:45:43 +05:00
parent 2ff504ad41
commit b01095e61c

View file

@ -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.