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

thumb deprecation typo and thumb->thumbnail param rename

This commit is contained in:
Badiboy
2023-03-25 14:44:50 +03:00
parent 7c7a063fb6
commit e56c60ac00
4 changed files with 75 additions and 75 deletions

View File

@@ -2948,13 +2948,13 @@ class AsyncTeleBot:
if thumb is not None and thumbnail is None:
thumbnail = thumb
logger.warning('thumb is deprecated, use thumbnail instead')
logger.warning('"thumb" param is deprecated, use "thumbnail" param instead')
return types.Message.de_json(
await asyncio_helper.send_data(
self.token, chat_id, document, 'document',
reply_to_message_id = reply_to_message_id, reply_markup = reply_markup, parse_mode = parse_mode,
disable_notification = disable_notification, timeout = timeout, caption = caption, thumb = thumbnail,
disable_notification = disable_notification, timeout = timeout, caption = caption, thumbnail= thumbnail,
caption_entities = caption_entities, allow_sending_without_reply = allow_sending_without_reply,
disable_content_type_detection = disable_content_type_detection, visible_file_name = visible_file_name, protect_content = protect_content,
message_thread_id = message_thread_id))
@@ -3234,7 +3234,7 @@ class AsyncTeleBot:
if thumb is not None and thumbnail is None:
thumbnail = thumb
logger.warning('thumb is deprecated, use thumbnail instead')
logger.warning('"thumb" param is deprecated, use "thumbnail" param instead')
return types.Message.de_json(
await asyncio_helper.send_animation(
@@ -3314,7 +3314,7 @@ class AsyncTeleBot:
if thumb is not None and thumbnail is None:
thumbnail = thumb
logger.warning('thumb is deprecated, use thumbnail instead')
logger.warning('"thumb" param is deprecated, use "thumbnail" param instead')
return types.Message.de_json(
await asyncio_helper.send_video_note(