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

Contains_mask

This commit is contained in:
_run 2022-08-13 14:36:48 +05:00
parent dd4073fd74
commit 2647a02fc6
2 changed files with 6 additions and 2 deletions

View File

@ -4281,8 +4281,10 @@ class TeleBot:
"""
if contains_masks is not None:
logger.warning('The parameter "contains_masks" is deprecated, use "sticker_type" instead')
if sticker_type is None:
if contains_masks:
sticker_type = 'mask'
else:
sticker_type = 'regular'
return apihelper.create_new_sticker_set(
self.token, user_id, name, title, emojis, png_sticker, tgs_sticker,

View File

@ -5119,8 +5119,10 @@ class AsyncTeleBot:
"""
if contains_masks is not None:
logger.warning('The parameter "contains_masks" is deprecated, use "sticker_type" instead')
if sticker_type is None:
if contains_masks:
sticker_type = 'mask'
else:
sticker_type = 'regular'
return await asyncio_helper.create_new_sticker_set(
self.token, user_id, name, title, emojis, png_sticker, tgs_sticker,