deleteStickerSet

Returns: bool

class aiogram.methods.delete_sticker_set.DeleteStickerSet(*, name: str, **extra_data: Any)[source]

Use this method to delete a sticker set that was created by the bot. Returns True on success.

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

name: str

Sticker set name

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

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

model_post_init(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_sticker_set(...)

Method as object

Imports:

  • from aiogram.methods.delete_sticker_set import DeleteStickerSet

  • alias: from aiogram.methods import DeleteStickerSet

With specific bot

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

As reply into Webhook in handler

return DeleteStickerSet(...)