deleteChatStickerSet#

Returns: bool

class aiogram.methods.delete_chat_sticker_set.DeleteChatStickerSet(*, chat_id: int | str, **extra_data: Any)[source]#

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 administrator rights. Use the field can_set_sticker_set optionally returned in aiogram.methods.get_chat.GetChat requests to check if the bot can use this method. Returns True on success.

Source: https://core.telegram.org/bots/api#deletechatstickerset

chat_id: int | str#

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

Usage#

As bot method#

result: bool = await bot.delete_chat_sticker_set(...)

Method as object#

Imports:

  • from aiogram.methods.delete_chat_sticker_set import DeleteChatStickerSet

  • alias: from aiogram.methods import DeleteChatStickerSet

With specific bot#

result: bool = await bot(DeleteChatStickerSet(...))

As reply into Webhook in handler#

return DeleteChatStickerSet(...)

As shortcut from received object#