create_new_sticker_set()¶
- async Client.create_new_sticker_set()¶
Create a new sticker set.
Usable by Users Bots- Parameters:
user_id (
int|str) – Unique identifier (int) or username (str) of the sticker set owner.name (
str) – Short name of the sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must end with “_by_<bot_username>” for bots, 1-64 characters.title (
str) – Sticker set title, 1-64 characters.stickers (List of
InputSticker) – List of stickers to be added to the set, up to 200 stickers.sticker_type (
StickerType, optional) – Type of stickers in the set. By default, a regular sticker set is created.needs_repainting (
bool, optional) – Pass True if stickers in the set must be repainted to the color of text when used in messages. For custom emoji sticker sets only.
- Returns:
StickerSet– The created sticker set is returned.
Example
from wzgram import enums, types await app.create_new_sticker_set( "me", "my_sticker_set", "My stickers", stickers=[ types.InputSticker( sticker="sticker.png", format=enums.StickerFormat.STATIC, emoji_list=["👍"] ) ] )