Skip to content

Commit ebacefb

Browse files
committed
Increase media thumbnail size limit
1 parent 22a7e33 commit ebacefb

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

pyrogram/client/methods/messages/send_animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def send_animation(
8383
thumb (``str``, *optional*):
8484
Thumbnail of the animation file sent.
8585
The thumbnail should be in JPEG format and less than 200 KB in size.
86-
A thumbnail's width and height should not exceed 90 pixels.
86+
A thumbnail's width and height should not exceed 320 pixels.
8787
Thumbnails can't be reused and can be only uploaded as a new file.
8888
8989
disable_notification (``bool``, *optional*):

pyrogram/client/methods/messages/send_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def send_audio(
8585
thumb (``str``, *optional*):
8686
Thumbnail of the music file album cover.
8787
The thumbnail should be in JPEG format and less than 200 KB in size.
88-
A thumbnail's width and height should not exceed 90 pixels.
88+
A thumbnail's width and height should not exceed 320 pixels.
8989
Thumbnails can't be reused and can be only uploaded as a new file.
9090
9191
disable_notification (``bool``, *optional*):

pyrogram/client/methods/messages/send_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def send_document(
6363
thumb (``str``, *optional*):
6464
Thumbnail of the file sent.
6565
The thumbnail should be in JPEG format and less than 200 KB in size.
66-
A thumbnail's width and height should not exceed 90 pixels.
66+
A thumbnail's width and height should not exceed 320 pixels.
6767
Thumbnails can't be reused and can be only uploaded as a new file.
6868
6969
caption (``str``, *optional*):

pyrogram/client/methods/messages/send_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def send_video(
8484
thumb (``str``, *optional*):
8585
Thumbnail of the video sent.
8686
The thumbnail should be in JPEG format and less than 200 KB in size.
87-
A thumbnail's width and height should not exceed 90 pixels.
87+
A thumbnail's width and height should not exceed 320 pixels.
8888
Thumbnails can't be reused and can be only uploaded as a new file.
8989
9090
supports_streaming (``bool``, *optional*):

pyrogram/client/methods/messages/send_video_note.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def send_video_note(
6969
thumb (``str``, *optional*):
7070
Thumbnail of the video sent.
7171
The thumbnail should be in JPEG format and less than 200 KB in size.
72-
A thumbnail's width and height should not exceed 90 pixels.
72+
A thumbnail's width and height should not exceed 320 pixels.
7373
Thumbnails can't be reused and can be only uploaded as a new file.
7474
7575
disable_notification (``bool``, *optional*):

pyrogram/client/types/input_media/input_media_animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class InputMediaAnimation(InputMedia):
3131
thumb (``str``, *optional*):
3232
Thumbnail of the animation file sent.
3333
The thumbnail should be in JPEG format and less than 200 KB in size.
34-
A thumbnail's width and height should not exceed 90 pixels.
34+
A thumbnail's width and height should not exceed 320 pixels.
3535
Thumbnails can't be reused and can be only uploaded as a new file.
3636
3737
caption (``str``, *optional*):

pyrogram/client/types/input_media/input_media_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class InputMediaAudio(InputMedia):
3232
thumb (``str``, *optional*):
3333
Thumbnail of the music file album cover.
3434
The thumbnail should be in JPEG format and less than 200 KB in size.
35-
A thumbnail's width and height should not exceed 90 pixels.
35+
A thumbnail's width and height should not exceed 320 pixels.
3636
Thumbnails can't be reused and can be only uploaded as a new file.
3737
3838
caption (``str``, *optional*):

pyrogram/client/types/input_media/input_media_document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class InputMediaDocument(InputMedia):
3131
thumb (``str``):
3232
Thumbnail of the file sent.
3333
The thumbnail should be in JPEG format and less than 200 KB in size.
34-
A thumbnail's width and height should not exceed 90 pixels.
34+
A thumbnail's width and height should not exceed 320 pixels.
3535
Thumbnails can't be reused and can be only uploaded as a new file.
3636
3737
caption (``str``, *optional*):

pyrogram/client/types/input_media/input_media_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class InputMediaVideo(InputMedia):
3333
thumb (``str``):
3434
Thumbnail of the video sent.
3535
The thumbnail should be in JPEG format and less than 200 KB in size.
36-
A thumbnail's width and height should not exceed 90 pixels.
36+
A thumbnail's width and height should not exceed 320 pixels.
3737
Thumbnails can't be reused and can be only uploaded as a new file.
3838
3939
caption (``str``, *optional*):

pyrogram/client/types/messages_and_media/message.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ def reply_animation(
795795
thumb (``str``, *optional*):
796796
Thumbnail of the animation file sent.
797797
The thumbnail should be in JPEG format and less than 200 KB in size.
798-
A thumbnail's width and height should not exceed 90 pixels.
798+
A thumbnail's width and height should not exceed 320 pixels.
799799
Thumbnails can't be reused and can be only uploaded as a new file.
800800
801801
disable_notification (``bool``, *optional*):
@@ -930,7 +930,7 @@ def reply_audio(
930930
thumb (``str``, *optional*):
931931
Thumbnail of the music file album cover.
932932
The thumbnail should be in JPEG format and less than 200 KB in size.
933-
A thumbnail's width and height should not exceed 90 pixels.
933+
A thumbnail's width and height should not exceed 320 pixels.
934934
Thumbnails can't be reused and can be only uploaded as a new file.
935935
936936
disable_notification (``bool``, *optional*):
@@ -1257,7 +1257,7 @@ def reply_document(
12571257
thumb (``str``, *optional*):
12581258
Thumbnail of the file sent.
12591259
The thumbnail should be in JPEG format and less than 200 KB in size.
1260-
A thumbnail's width and height should not exceed 90 pixels.
1260+
A thumbnail's width and height should not exceed 320 pixels.
12611261
Thumbnails can't be reused and can be only uploaded as a new file.
12621262
12631263
caption (``str``, *optional*):
@@ -2064,7 +2064,7 @@ def reply_video(
20642064
thumb (``str``, *optional*):
20652065
Thumbnail of the video sent.
20662066
The thumbnail should be in JPEG format and less than 200 KB in size.
2067-
A thumbnail's width and height should not exceed 90 pixels.
2067+
A thumbnail's width and height should not exceed 320 pixels.
20682068
Thumbnails can't be reused and can be only uploaded as a new file.
20692069
20702070
supports_streaming (``bool``, *optional*):
@@ -2189,7 +2189,7 @@ def reply_video_note(
21892189
thumb (``str``, *optional*):
21902190
Thumbnail of the video sent.
21912191
The thumbnail should be in JPEG format and less than 200 KB in size.
2192-
A thumbnail's width and height should not exceed 90 pixels.
2192+
A thumbnail's width and height should not exceed 320 pixels.
21932193
Thumbnails can't be reused and can be only uploaded as a new file.
21942194
21952195
disable_notification (``bool``, *optional*):

0 commit comments

Comments
 (0)