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:
parent
5c6b867582
commit
3b4e6fed04
|
@ -4537,7 +4537,7 @@ class TeleBot:
|
||||||
"""
|
"""
|
||||||
return apihelper.answer_callback_query(self.token, callback_query_id, text, show_alert, url, cache_time)
|
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):
|
self, name: str, user_id: int, thumb: Union[Any, str]=None):
|
||||||
"""
|
"""
|
||||||
Use this method to set the thumbnail of a sticker set.
|
Use this method to set the thumbnail of a sticker set.
|
||||||
|
@ -4559,6 +4559,8 @@ class TeleBot:
|
||||||
"""
|
"""
|
||||||
return apihelper.set_sticker_set_thumb(self.token, name, user_id, thumb)
|
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:
|
def get_sticker_set(self, name: str) -> types.StickerSet:
|
||||||
"""
|
"""
|
||||||
Use this method to get a sticker set. On success, a StickerSet object is returned.
|
Use this method to get a sticker set. On success, a StickerSet object is returned.
|
||||||
|
|
|
@ -356,7 +356,7 @@ def get_chat_member_count(token, chat_id):
|
||||||
|
|
||||||
|
|
||||||
def set_sticker_set_thumb(token, name, user_id, thumb):
|
def set_sticker_set_thumb(token, name, user_id, thumb):
|
||||||
method_url = r'setStickerSetThumb'
|
method_url = r'setStickerSetThumbnail'
|
||||||
payload = {'name': name, 'user_id': user_id}
|
payload = {'name': name, 'user_id': user_id}
|
||||||
files = {}
|
files = {}
|
||||||
if thumb:
|
if thumb:
|
||||||
|
|
|
@ -5401,7 +5401,7 @@ class AsyncTeleBot:
|
||||||
"""
|
"""
|
||||||
return await asyncio_helper.answer_callback_query(self.token, callback_query_id, text, show_alert, url, cache_time)
|
return await asyncio_helper.answer_callback_query(self.token, callback_query_id, text, show_alert, url, cache_time)
|
||||||
|
|
||||||
async def set_sticker_set_thumb(
|
async def set_sticker_set_thumbnail(
|
||||||
self, name: str, user_id: int, thumb: Union[Any, str]=None):
|
self, name: str, user_id: int, thumb: Union[Any, str]=None):
|
||||||
"""
|
"""
|
||||||
Use this method to set the thumbnail of a sticker set.
|
Use this method to set the thumbnail of a sticker set.
|
||||||
|
@ -5423,6 +5423,8 @@ class AsyncTeleBot:
|
||||||
"""
|
"""
|
||||||
return await asyncio_helper.set_sticker_set_thumb(self.token, name, user_id, thumb)
|
return await asyncio_helper.set_sticker_set_thumb(self.token, name, user_id, thumb)
|
||||||
|
|
||||||
|
set_sticker_set_thumb = set_sticker_set_thumbnail
|
||||||
|
|
||||||
async def get_sticker_set(self, name: str) -> types.StickerSet:
|
async def get_sticker_set(self, name: str) -> types.StickerSet:
|
||||||
"""
|
"""
|
||||||
Use this method to get a sticker set. On success, a StickerSet object is returned.
|
Use this method to get a sticker set. On success, a StickerSet object is returned.
|
||||||
|
|
|
@ -342,7 +342,7 @@ async def get_chat_member_count(token, chat_id):
|
||||||
|
|
||||||
|
|
||||||
async def set_sticker_set_thumb(token, name, user_id, thumb):
|
async def set_sticker_set_thumb(token, name, user_id, thumb):
|
||||||
method_url = r'setStickerSetThumb'
|
method_url = r'setStickerSetThumbnail'
|
||||||
payload = {'name': name, 'user_id': user_id}
|
payload = {'name': name, 'user_id': user_id}
|
||||||
files = {}
|
files = {}
|
||||||
if thumb:
|
if thumb:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user