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

Fixes regarding contains_masks

This commit is contained in:
_run
2022-08-13 13:22:25 +05:00
parent 737c3a439d
commit dd4073fd74
5 changed files with 24 additions and 11 deletions

View File

@@ -5117,9 +5117,14 @@ class AsyncTeleBot:
:return: On success, True is returned.
:rtype: :obj:`bool`
"""
if contains_masks is not None:
logger.warning('The parameter "contains_masks" is deprecated, use "sticker_type" instead')
if sticker_type is None:
sticker_type = 'mask'
return await asyncio_helper.create_new_sticker_set(
self.token, user_id, name, title, emojis, png_sticker, tgs_sticker,
contains_masks, mask_position, webm_sticker, sticker_type)
mask_position, webm_sticker, sticker_type)
async def add_sticker_to_set(