- class telegram.InputSticker(sticker, emoji_list, mask_position=None, keywords=None, *, api_kwargs=None)¶
This object describes a sticker to be added to a sticker set.
New in version 20.2.
str| file object |
pathlib.Path) – The added sticker. To upload a file, you can either pass a file object (e.g.
open("filename", "rb")) or the file contents as bytes. If the bot is running in
local_mode, passing the path of the file (as string or
pathlib.Pathobject) is supported as well. Animated and video stickers can’t be uploaded via HTTP URL.
Optional. Position where the mask should be placed on faces. For “
'mask'” stickers only.