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

Thumb type spec

This commit is contained in:
Badiboy
2023-03-26 18:00:35 +03:00
parent 8b63f6a6ef
commit 2e589ab6e1
2 changed files with 20 additions and 12 deletions

View File

@@ -1892,7 +1892,7 @@ class TeleBot:
The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320.
Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file,
so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>
:type thumbnail: :obj:`str`
:type thumbnail: :obj:`str` or :class:`telebot.types.InputFile`
:param caption_entities: A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
:type caption_entities: :obj:`list` of :class:`telebot.types.MessageEntity`
@@ -1907,6 +1907,7 @@ class TeleBot:
:type message_thread_id: :obj:`int`
:param thumb: Deprecated. Use thumbnail instead
:type thumb: :obj:`str` or :class:`telebot.types.InputFile`
:return: On success, the sent Message is returned.
:rtype: :class:`telebot.types.Message`
@@ -2075,7 +2076,8 @@ class TeleBot:
:type message_thread_id: :obj:`int`
:param thumb: Deprecated. Use thumbnail instead
:type thumbnail: :obj:`str` or :class:`telebot.types.InputFile`
:type thumb: :obj:`str` or :class:`telebot.types.InputFile`
:return: On success, the sent Message is returned.
:rtype: :class:`telebot.types.Message`
"""
@@ -2263,7 +2265,8 @@ class TeleBot:
:type has_spoiler: :obj:`bool`
:param thumb: Deprecated. Use thumbnail instead
:type thumbnail: :obj:`str` or :class:`telebot.types.InputFile`
:type thumb: :obj:`str` or :class:`telebot.types.InputFile`
:return: On success, the sent Message is returned.
:rtype: :class:`telebot.types.Message`
"""
@@ -2369,7 +2372,8 @@ class TeleBot:
:type has_spoiler: :obj:`bool`
:param thumb: Deprecated. Use thumbnail instead
:type thumbnail: :obj:`str` or :class:`telebot.types.InputFile`
:type thumb: :obj:`str` or :class:`telebot.types.InputFile`
:return: On success, the sent Message is returned.
:rtype: :class:`telebot.types.Message`
"""