diff --git a/pyrogram/types/input_media/input_media_video.py b/pyrogram/types/input_media/input_media_video.py index ab1823d339..cddb94b4f4 100644 --- a/pyrogram/types/input_media/input_media_video.py +++ b/pyrogram/types/input_media/input_media_video.py @@ -35,7 +35,7 @@ class InputMediaVideo(InputMedia): pass a binary file-like object with its attribute “.name” set for in-memory uploads or pass an HTTP URL as a string for Telegram to get a video from the Internet. - thumb (``str``): + thumb (``str`` | ``BinaryIO``): 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. @@ -71,7 +71,7 @@ class InputMediaVideo(InputMedia): def __init__( self, media: Union[str, BinaryIO], - thumb: str = None, + thumb: Union[str, BinaryIO] = None, caption: str = "", parse_mode: Optional["enums.ParseMode"] = None, caption_entities: List[MessageEntity] = None,