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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user