Skip to content

Commit f1e4a0c

Browse files
leonardottyleonardottydelivrance
authored
Update maximum caption length (pyrogram#989)
Co-authored-by: leonardotty <leonardo.rossidev@gmail.com> Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
1 parent a320a9e commit f1e4a0c

27 files changed

+35
-35
lines changed

pyrogram/methods/messages/copy_media_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def copy_media_group(
5151
Message identifier in the chat specified in *from_chat_id*.
5252
5353
captions (``str`` | List of ``str`` , *optional*):
54-
New caption for media, 0-1024 characters after entities parsing for each media.
54+
New caption for media, 0-4096 characters after entities parsing for each media.
5555
If not specified, the original caption is kept.
5656
Pass "" (empty string) to remove the caption.
5757

pyrogram/methods/messages/copy_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def copy_message(
6666
Message identifier in the chat specified in *from_chat_id*.
6767
6868
caption (``string``, *optional*):
69-
New caption for media, 0-1024 characters after entities parsing.
69+
New caption for media, 0-4096 characters after entities parsing.
7070
If not specified, the original caption is kept.
7171
Pass "" (empty string) to remove the caption.
7272

pyrogram/methods/messages/send_animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def send_animation(
7373
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
7474
7575
caption (``str``, *optional*):
76-
Animation caption, 0-1024 characters.
76+
Animation caption, 0-4096 characters.
7777
7878
unsave (``bool``, *optional*):
7979
By default, the server will save into your own collection any new animation you send.

pyrogram/methods/messages/send_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def send_audio(
7474
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
7575
7676
caption (``str``, *optional*):
77-
Audio caption, 0-1024 characters.
77+
Audio caption, 0-4096 characters.
7878
7979
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
8080
By default, texts are parsed using both Markdown and HTML styles.

pyrogram/methods/messages/send_cached_media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def send_cached_media(
6161
Pass a file_id as string to send a media that exists on the Telegram servers.
6262
6363
caption (``str``, *optional*):
64-
Media caption, 0-1024 characters.
64+
Media caption, 0-4096 characters.
6565
6666
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
6767
By default, texts are parsed using both Markdown and HTML styles.

pyrogram/methods/messages/send_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def send_document(
7676
Thumbnails can't be reused and can be only uploaded as a new file.
7777
7878
caption (``str``, *optional*):
79-
Document caption, 0-1024 characters.
79+
Document caption, 0-4096 characters.
8080
8181
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
8282
By default, texts are parsed using both Markdown and HTML styles.

pyrogram/methods/messages/send_photo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def send_photo(
6767
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
6868
6969
caption (``str``, *optional*):
70-
Photo caption, 0-1024 characters.
70+
Photo caption, 0-4096 characters.
7171
7272
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
7373
By default, texts are parsed using both Markdown and HTML styles.

pyrogram/methods/messages/send_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def send_video(
7474
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
7575
7676
caption (``str``, *optional*):
77-
Video caption, 0-1024 characters.
77+
Video caption, 0-4096 characters.
7878
7979
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
8080
By default, texts are parsed using both Markdown and HTML styles.

pyrogram/methods/messages/send_voice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def send_voice(
6868
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
6969
7070
caption (``str``, *optional*):
71-
Voice message caption, 0-1024 characters.
71+
Voice message caption, 0-4096 characters.
7272
7373
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
7474
By default, texts are parsed using both Markdown and HTML styles.

pyrogram/types/inline_mode/inline_query_result_animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class InlineQueryResultAnimation(InlineQueryResult):
6060
Title for the result.
6161
6262
caption (``str``, *optional*):
63-
Caption of the animation to be sent, 0-1024 characters.
63+
Caption of the animation to be sent, 0-4096 characters.
6464
6565
parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
6666
By default, texts are parsed using both Markdown and HTML styles.

0 commit comments

Comments
 (0)