Returns: bool

class aiogram.methods.create_new_sticker_set.CreateNewStickerSet(*, user_id: int, name: str, title: str, stickers: List[InputSticker], sticker_format: str, sticker_type: str | None = None, needs_repainting: bool | None = None, **extra_data: Any)[source]#

Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success.


user_id: int#

User identifier of created sticker set owner

name: str#

Short name of sticker set, to be used in URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can’t contain consecutive underscores and must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.

title: str#

Sticker set title, 1-64 characters

stickers: List[InputSticker]#

A JSON-serialized list of 1-50 initial stickers to be added to the sticker set

sticker_format: str#

Format of stickers in the set, must be one of ‘static’, ‘animated’, ‘video’

sticker_type: str | None#

Type of stickers in the set, pass ‘regular’, ‘mask’, or ‘custom_emoji’. By default, a regular sticker set is created.

needs_repainting: bool | None#

Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only


As bot method#

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

Method as object#


  • from aiogram.methods.create_new_sticker_set import CreateNewStickerSet

  • alias: from aiogram.methods import CreateNewStickerSet

With specific bot#

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

As reply into Webhook in handler#

return CreateNewStickerSet(...)