1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added support for .WEBP files in createNewStickerSet and addStickerToSet.

This commit is contained in:
coder2020official 2023-03-11 22:03:37 +04:00
parent 19dcce0d5b
commit 73135d6012
2 changed files with 8 additions and 4 deletions

View File

@ -4688,7 +4688,9 @@ class TeleBot:
sticker: Optional[List[types.InputSticker]]=None) -> bool:
"""
Use this method to add a new sticker to a set created by the bot.
It's required to pass `png_sticker` or `tgs_sticker`.
The format of the added sticker must match the format of the other stickers in the set.
Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers.
Static sticker sets can have up to 120 stickers.
Returns True on success.
Telegram documentation: https://core.telegram.org/bots/api#addstickertoset

View File

@ -5551,7 +5551,9 @@ class AsyncTeleBot:
sticker: Optional[List[types.InputSticker]]=None) -> bool:
"""
Use this method to add a new sticker to a set created by the bot.
It's required to pass `png_sticker` or `tgs_sticker`.
The format of the added sticker must match the format of the other stickers in the set.
Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers.
Static sticker sets can have up to 120 stickers.
Returns True on success.
Telegram documentation: https://core.telegram.org/bots/api#addstickertoset