From 73135d6012aa7f483e0e04a1fa8ed1160897d374 Mon Sep 17 00:00:00 2001 From: coder2020official Date: Sat, 11 Mar 2023 22:03:37 +0400 Subject: [PATCH] Added support for .WEBP files in createNewStickerSet and addStickerToSet. --- telebot/__init__.py | 6 ++++-- telebot/async_telebot.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index ac92378..90a2fcf 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -4687,8 +4687,10 @@ class TeleBot: mask_position: Optional[types.MaskPosition]=None, 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`. + Use this method to add a new sticker to a set created by the bot. + 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 diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index eba6c47..079a9a6 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -5550,8 +5550,10 @@ class AsyncTeleBot: mask_position: Optional[types.MaskPosition]=None, 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`. + Use this method to add a new sticker to a set created by the bot. + 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