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

Renamed the method setStickerSetThumb to setStickerSetThumbnail and its parameter thumb to thumbnail.

This commit is contained in:
coder2020official
2023-03-11 23:37:32 +04:00
parent 5c6b867582
commit 3b4e6fed04
4 changed files with 8 additions and 4 deletions

View File

@@ -4537,7 +4537,7 @@ class TeleBot:
"""
return apihelper.answer_callback_query(self.token, callback_query_id, text, show_alert, url, cache_time)
def set_sticker_set_thumb(
def set_sticker_set_thumbnail(
self, name: str, user_id: int, thumb: Union[Any, str]=None):
"""
Use this method to set the thumbnail of a sticker set.
@@ -4558,6 +4558,8 @@ class TeleBot:
:rtype: :obj:`bool`
"""
return apihelper.set_sticker_set_thumb(self.token, name, user_id, thumb)
set_sticker_set_thumb = set_sticker_set_thumbnail
def get_sticker_set(self, name: str) -> types.StickerSet:
"""