Skip to content

Commit

Permalink
thumb BinaryIO
Browse files Browse the repository at this point in the history
  • Loading branch information
m2k7m committed Jan 28, 2025
1 parent 9527a24 commit abc78fa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 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 Expand Up @@ -5327,4 +5327,4 @@ async def pay(self) -> List[Union["types.Photo", "types.Video"]]:
return await self._client.send_payment_form(
chat_id=self.chat.id,
message_id=self.id
)
)

0 comments on commit abc78fa

Please sign in to comment.