Returns: bool

class aiogram.methods.create_new_sticker_set.CreateNewStickerSet(*, user_id: int, name: str, title: str, emojis: str, png_sticker: Optional[Union[InputFile, str]] = None, tgs_sticker: Optional[InputFile] = None, webm_sticker: Optional[InputFile] = None, sticker_type: Optional[str] = None, mask_position: Optional[MaskPosition] = 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. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. 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

emojis: str#

One or more emoji corresponding to the sticker

png_sticker: Optional[Union[InputFile, str]]#

PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »

tgs_sticker: Optional[InputFile]#

TGS animation with the sticker, uploaded using multipart/form-data. See <>`_` for technical requirements

webm_sticker: Optional[InputFile]#

WEBM video with the sticker, uploaded using multipart/form-data. See <>`_` for technical requirements

sticker_type: Optional[str]#

Type of stickers in the set, pass ‘regular’ or ‘mask’. Custom emoji sticker sets can’t be created via the Bot API at the moment. By default, a regular sticker set is created.

mask_position: Optional[MaskPosition]#

A JSON-serialized object for position where the mask should be placed on faces

build_request(bot: Bot) Request[source]#


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