deleteStickerFromSet

Returns: bool

class aiogram.methods.delete_sticker_from_set.DeleteStickerFromSet(*, sticker: str, **extra_data: Any)[source]

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

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

sticker: str

File identifier of the sticker

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_from_set(...)

Method as object

Imports:

  • from aiogram.methods.delete_sticker_from_set import DeleteStickerFromSet

  • alias: from aiogram.methods import DeleteStickerFromSet

With specific bot

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

As reply into Webhook in handler

return DeleteStickerFromSet(...)

As shortcut from received object