add_sticker_to_set()

Client.add_sticker_to_set(name: str, sticker: types.InputSticker) types.StickerSet

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.

Usable by Users Bots
Parameters:
  • name (str) – Sticker set name.

  • sticker (InputSticker) – An InputSticker object with information about the added sticker.

Returns:

StickerSet – On success, the sticker set is returned.

Example

await app.add_sticker_to_set("my_set_by_bot", sticker)