mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Update maximum caption length (#989)
Co-authored-by: leonardotty <leonardo.rossidev@gmail.com> Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
This commit is contained in:
parent
a320a9e7ff
commit
f1e4a0ce74
@ -51,7 +51,7 @@ class CopyMediaGroup:
|
||||
Message identifier in the chat specified in *from_chat_id*.
|
||||
|
||||
captions (``str`` | List of ``str`` , *optional*):
|
||||
New caption for media, 0-1024 characters after entities parsing for each media.
|
||||
New caption for media, 0-4096 characters after entities parsing for each media.
|
||||
If not specified, the original caption is kept.
|
||||
Pass "" (empty string) to remove the caption.
|
||||
|
||||
|
@ -66,7 +66,7 @@ class CopyMessage:
|
||||
Message identifier in the chat specified in *from_chat_id*.
|
||||
|
||||
caption (``string``, *optional*):
|
||||
New caption for media, 0-1024 characters after entities parsing.
|
||||
New caption for media, 0-4096 characters after entities parsing.
|
||||
If not specified, the original caption is kept.
|
||||
Pass "" (empty string) to remove the caption.
|
||||
|
||||
|
@ -73,7 +73,7 @@ class SendAnimation:
|
||||
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Animation caption, 0-1024 characters.
|
||||
Animation caption, 0-4096 characters.
|
||||
|
||||
unsave (``bool``, *optional*):
|
||||
By default, the server will save into your own collection any new animation you send.
|
||||
|
@ -74,7 +74,7 @@ class SendAudio:
|
||||
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Audio caption, 0-1024 characters.
|
||||
Audio caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -61,7 +61,7 @@ class SendCachedMedia:
|
||||
Pass a file_id as string to send a media that exists on the Telegram servers.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Media caption, 0-1024 characters.
|
||||
Media caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -76,7 +76,7 @@ class SendDocument:
|
||||
Thumbnails can't be reused and can be only uploaded as a new file.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Document caption, 0-1024 characters.
|
||||
Document caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -67,7 +67,7 @@ class SendPhoto:
|
||||
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Photo caption, 0-1024 characters.
|
||||
Photo caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -74,7 +74,7 @@ class SendVideo:
|
||||
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Video caption, 0-1024 characters.
|
||||
Video caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -68,7 +68,7 @@ class SendVoice:
|
||||
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Voice message caption, 0-1024 characters.
|
||||
Voice message caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -60,7 +60,7 @@ class InlineQueryResultAnimation(InlineQueryResult):
|
||||
Title for the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the animation to be sent, 0-1024 characters.
|
||||
Caption of the animation to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -48,7 +48,7 @@ class InlineQueryResultAudio(InlineQueryResult):
|
||||
Audio duration in seconds.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the audio to be sent, 0-1024 characters.
|
||||
Caption of the audio to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -43,7 +43,7 @@ class InlineQueryResultCachedAnimation(InlineQueryResult):
|
||||
Title for the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -39,7 +39,7 @@ class InlineQueryResultCachedAudio(InlineQueryResult):
|
||||
Defaults to a randomly generated UUID4.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -45,7 +45,7 @@ class InlineQueryResultCachedDocument(InlineQueryResult):
|
||||
Short description of the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -45,7 +45,7 @@ class InlineQueryResultCachedPhoto(InlineQueryResult):
|
||||
Short description of the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -46,7 +46,7 @@ class InlineQueryResultCachedVideo(InlineQueryResult):
|
||||
Short description of the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -43,7 +43,7 @@ class InlineQueryResultCachedVoice(InlineQueryResult):
|
||||
Title for the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -45,7 +45,7 @@ class InlineQueryResultDocument(InlineQueryResult):
|
||||
Defaults to a randomly generated UUID4.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the video to be sent, 0-1024 characters.
|
||||
Caption of the video to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -56,7 +56,7 @@ class InlineQueryResultPhoto(InlineQueryResult):
|
||||
Short description of the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -61,7 +61,7 @@ class InlineQueryResultVideo(InlineQueryResult):
|
||||
Short description of the result.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the video to be sent, 0-1024 characters.
|
||||
Caption of the video to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -45,7 +45,7 @@ class InlineQueryResultVoice(InlineQueryResult):
|
||||
Recording duration in seconds.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the audio to be sent, 0-1024 characters.
|
||||
Caption of the audio to be sent, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
|
@ -41,7 +41,7 @@ class InputMediaAnimation(InputMedia):
|
||||
Thumbnails can't be reused and can be only uploaded as a new file.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the animation to be sent, 0-1024 characters.
|
||||
Caption of the animation to be sent, 0-4096 characters.
|
||||
If not specified, the original caption is kept. Pass "" (empty string) to remove the caption.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
|
@ -43,7 +43,7 @@ class InputMediaAudio(InputMedia):
|
||||
Thumbnails can't be reused and can be only uploaded as a new file.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the audio to be sent, 0-1024 characters.
|
||||
Caption of the audio to be sent, 0-4096 characters.
|
||||
If not specified, the original caption is kept. Pass "" (empty string) to remove the caption.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
|
@ -41,7 +41,7 @@ class InputMediaDocument(InputMedia):
|
||||
Thumbnails can't be reused and can be only uploaded as a new file.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the document to be sent, 0-1024 characters.
|
||||
Caption of the document to be sent, 0-4096 characters.
|
||||
If not specified, the original caption is kept. Pass "" (empty string) to remove the caption.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
|
@ -36,7 +36,7 @@ class InputMediaPhoto(InputMedia):
|
||||
pass an HTTP URL as a string for Telegram to get a photo from the Internet.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the photo to be sent, 0-1024 characters.
|
||||
Caption of the photo to be sent, 0-4096 characters.
|
||||
If not specified, the original caption is kept. Pass "" (empty string) to remove the caption.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
|
@ -42,7 +42,7 @@ class InputMediaVideo(InputMedia):
|
||||
Thumbnails can't be reused and can be only uploaded as a new file.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption of the video to be sent, 0-1024 characters.
|
||||
Caption of the video to be sent, 0-4096 characters.
|
||||
If not specified, the original caption is kept. Pass "" (empty string) to remove the caption.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
|
@ -177,7 +177,7 @@ class Message(Object, Update):
|
||||
Message is a video note, information about the video message.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Caption for the audio, document, photo, video or voice, 0-1024 characters.
|
||||
Caption for the audio, document, photo, video or voice, 0-4096 characters.
|
||||
If the message contains caption entities (bold, italic, ...) you can access *caption.markdown* or
|
||||
*caption.html* to get the marked up caption text. In case there is no caption entity, the fields
|
||||
will contain the same text as *caption*.
|
||||
@ -1022,7 +1022,7 @@ class Message(Object, Update):
|
||||
Defaults to ``True`` in group chats and ``False`` in private chats.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Animation caption, 0-1024 characters.
|
||||
Animation caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
@ -1161,7 +1161,7 @@ class Message(Object, Update):
|
||||
Defaults to ``True`` in group chats and ``False`` in private chats.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Audio caption, 0-1024 characters.
|
||||
Audio caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
@ -1292,7 +1292,7 @@ class Message(Object, Update):
|
||||
Defaults to ``True`` in group chats and ``False`` in private chats.
|
||||
|
||||
caption (``bool``, *optional*):
|
||||
Media caption, 0-1024 characters.
|
||||
Media caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
@ -1514,7 +1514,7 @@ class Message(Object, Update):
|
||||
Thumbnails can't be reused and can be only uploaded as a new file.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Document caption, 0-1024 characters.
|
||||
Document caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
@ -1916,7 +1916,7 @@ class Message(Object, Update):
|
||||
Defaults to ``True`` in group chats and ``False`` in private chats.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Photo caption, 0-1024 characters.
|
||||
Photo caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
@ -2387,7 +2387,7 @@ class Message(Object, Update):
|
||||
Defaults to ``True`` in group chats and ``False`` in private chats.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Video caption, 0-1024 characters.
|
||||
Video caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
@ -2651,7 +2651,7 @@ class Message(Object, Update):
|
||||
Defaults to ``True`` in group chats and ``False`` in private chats.
|
||||
|
||||
caption (``str``, *optional*):
|
||||
Voice message caption, 0-1024 characters.
|
||||
Voice message caption, 0-4096 characters.
|
||||
|
||||
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
|
||||
By default, texts are parsed using both Markdown and HTML styles.
|
||||
@ -3007,7 +3007,7 @@ class Message(Object, Update):
|
||||
For a contact that exists in your Telegram address book you can use his phone number (str).
|
||||
|
||||
caption (``string``, *optional*):
|
||||
New caption for media, 0-1024 characters after entities parsing.
|
||||
New caption for media, 0-4096 characters after entities parsing.
|
||||
If not specified, the original caption is kept.
|
||||
Pass "" (empty string) to remove the caption.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user