mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Contains_mask
This commit is contained in:
parent
dd4073fd74
commit
2647a02fc6
@ -4281,8 +4281,10 @@ class TeleBot:
|
|||||||
"""
|
"""
|
||||||
if contains_masks is not None:
|
if contains_masks is not None:
|
||||||
logger.warning('The parameter "contains_masks" is deprecated, use "sticker_type" instead')
|
logger.warning('The parameter "contains_masks" is deprecated, use "sticker_type" instead')
|
||||||
if sticker_type is None:
|
if contains_masks:
|
||||||
sticker_type = 'mask'
|
sticker_type = 'mask'
|
||||||
|
else:
|
||||||
|
sticker_type = 'regular'
|
||||||
|
|
||||||
return apihelper.create_new_sticker_set(
|
return apihelper.create_new_sticker_set(
|
||||||
self.token, user_id, name, title, emojis, png_sticker, tgs_sticker,
|
self.token, user_id, name, title, emojis, png_sticker, tgs_sticker,
|
||||||
|
@ -5119,8 +5119,10 @@ class AsyncTeleBot:
|
|||||||
"""
|
"""
|
||||||
if contains_masks is not None:
|
if contains_masks is not None:
|
||||||
logger.warning('The parameter "contains_masks" is deprecated, use "sticker_type" instead')
|
logger.warning('The parameter "contains_masks" is deprecated, use "sticker_type" instead')
|
||||||
if sticker_type is None:
|
if contains_masks:
|
||||||
sticker_type = 'mask'
|
sticker_type = 'mask'
|
||||||
|
else:
|
||||||
|
sticker_type = 'regular'
|
||||||
|
|
||||||
return await asyncio_helper.create_new_sticker_set(
|
return await asyncio_helper.create_new_sticker_set(
|
||||||
self.token, user_id, name, title, emojis, png_sticker, tgs_sticker,
|
self.token, user_id, name, title, emojis, png_sticker, tgs_sticker,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user