create_sticker_set()

Client.create_sticker_set()

Create a new stickerset.

Usable by Users Bots
Parameters:
  • title (``str``) – Stickerset name, 1-64 chars

  • short_name (``str``, *optional*) – Short name of sticker set, to be used in sticker deep links. Can contain only english letters, digits and underscores. Must begin with a letter, can’t contain consecutive underscores and, if called by a bot, must end in “_by_<bot_username>”. <bot_username> is case insensitive. 1-64 characters.

  • sticker (``str``) – sticker to add. Pass a file_id as string to send a file that exists on the Telegram servers.

  • user_id (``int`` | ``str``, *optional*) – Unique identifier (int) or username (str) of the Stickerset owner. For you yourself you can simply use “me” or “self” (users only). required for bots. default to “me”.

  • emoji (``str``, *optional*) – Associated emoji. default to “🤔”

  • masks (``bool``, *optional*) – Whether this is a mask stickerset.

  • animated (``bool``, *optional*) – Whether this is a animated stickerset.

  • videos (``bool``, *optional*) – Whether this is a videos stickerset.

  • emojis (``bool``, *optional*) – Whether this is a emojis stickerset.

Returns:

:obj:`~pyrogram.types.StickerSet` | ``None`` (On success, the StickerSet is returned.)

Example

await app.create_sticker_set("me", "My First Pack", "myfirstpack", "AAjjHjk")