Skip to content

Commit

Permalink
Update thumb typehints (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2k7m authored Feb 6, 2025
1 parent 57cb94c commit c2a8fdc
Showing 1 changed file with 8 additions and 8 deletions.
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 @@ -1586,7 +1586,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 @@ -1657,7 +1657,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 @@ -1774,7 +1774,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 @@ -1839,7 +1839,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 @@ -3557,7 +3557,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 @@ -3635,7 +3635,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 @@ -3758,7 +3758,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 @@ -3813,7 +3813,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

0 comments on commit c2a8fdc

Please sign in to comment.