From abc78fa69d0d1e3e22612e6e2c041e3ead227b1d Mon Sep 17 00:00:00 2001 From: Mahdi Date: Tue, 28 Jan 2025 14:43:26 +0300 Subject: [PATCH] thumb BinaryIO --- pyrogram/types/messages_and_media/message.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 6c1f480498..ecd00c2caf 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -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, @@ -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. @@ -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, @@ -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. @@ -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, @@ -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. @@ -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, @@ -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. @@ -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 - ) + ) \ No newline at end of file