Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thumb BinaryIO #134

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ async def reply_animation(
duration: int = 0,
width: int = 0,
height: int = 0,
thumb: str = None,
thumb: Union[str, BinaryIO] = None,
disable_notification: bool = None,
business_connection_id: str = None,
allow_paid_broadcast: bool = None,
Expand Down Expand Up @@ -1650,7 +1650,7 @@ async def reply_animation(
height (``int``, *optional*):
Animation height.

thumb (``str``, *optional*):
thumb (``str`` | ``BinaryIO``, *optional*):
Thumbnail of the animation file sent.
The thumbnail should be in JPEG format and less than 200 KB in size.
A thumbnail's width and height should not exceed 320 pixels.
Expand Down Expand Up @@ -1767,7 +1767,7 @@ async def reply_audio(
duration: int = 0,
performer: str = None,
title: str = None,
thumb: str = None,
thumb: Union[str, BinaryIO] = None,
disable_notification: bool = None,
message_thread_id: int = None,
effect_id: int = None,
Expand Down Expand Up @@ -1832,7 +1832,7 @@ async def reply_audio(
title (``str``, *optional*):
Track name.

thumb (``str``, *optional*):
thumb (``str`` | ``BinaryIO``, *optional*):
Thumbnail of the music file album cover.
The thumbnail should be in JPEG format and less than 200 KB in size.
A thumbnail's width and height should not exceed 320 pixels.
Expand Down Expand Up @@ -3550,7 +3550,7 @@ async def reply_video(
duration: int = 0,
width: int = 0,
height: int = 0,
thumb: str = None,
thumb: Union[str, BinaryIO] = None,
supports_streaming: bool = True,
disable_notification: bool = None,
message_thread_id: int = None,
Expand Down Expand Up @@ -3628,7 +3628,7 @@ async def reply_video(
height (``int``, *optional*):
Video height.

thumb (``str``, *optional*):
thumb (``str`` | ``BinaryIO``, *optional*):
Thumbnail of the video sent.
The thumbnail should be in JPEG format and less than 200 KB in size.
A thumbnail's width and height should not exceed 320 pixels.
Expand Down Expand Up @@ -3751,7 +3751,7 @@ async def reply_video_note(
quote: bool = None,
duration: int = 0,
length: int = 1,
thumb: str = None,
thumb: Union[str, BinaryIO] = None,
disable_notification: bool = None,
message_thread_id: int = None,
effect_id: int = None,
Expand Down Expand Up @@ -3806,7 +3806,7 @@ async def reply_video_note(
length (``int``, *optional*):
Video width and height.

thumb (``str``, *optional*):
thumb (``str`` | ``BinaryIO``, *optional*):
Thumbnail of the video sent.
The thumbnail should be in JPEG format and less than 200 KB in size.
A thumbnail's width and height should not exceed 320 pixels.
Expand Down
Loading