addStickerToSet#

Returns: bool

class aiogram.methods.add_sticker_to_set.AddStickerToSet(*, user_id: int, name: str, sticker: InputSticker, **extra_data: Any)[source]#

Use this method to add a new sticker to a set created by the bot. The format of the added sticker must match the format of the other stickers in the set. Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.

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

user_id: int#

User identifier of sticker set owner

name: str#

Sticker set name

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

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

sticker: InputSticker#

A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn’t changed.

Usage#

As bot method#

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

Method as object#

Imports:

  • from aiogram.methods.add_sticker_to_set import AddStickerToSet

  • alias: from aiogram.methods import AddStickerToSet

With specific bot#

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

As reply into Webhook in handler#

return AddStickerToSet(...)