add_sticker_to_set()¶
- Client.add_sticker_to_set()¶
Add a sticker to stickerset.
Usable by Users Bots
- Parameters:¶
set_short_name (
str
) – Stickerset shortname.sticker (
str
) – sticker to add. Pass a file_id as string to add a sticker that exists on the Telegram servers, pass an HTTP URL as a string for Telegram to get a sticker from the Internet, pass a file path as string to upload a new sticker that exists on your local machine, or pass a binary file-like object with its attribute “.name” set for in-memory uploads.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 “🤔”
- Returns:¶
StickerSet
– On success, the StickerSet information is returned.
Example
await app.add_sticker_to_set("mypack1", "AsJiasp")