@@ -1357,7 +1357,7 @@ async def reply_animation(
13571357 duration : int = 0 ,
13581358 width : int = 0 ,
13591359 height : int = 0 ,
1360- thumb : str | None = None ,
1360+ thumb : str | BinaryIO | None = None ,
13611361 disable_notification : bool | None = None ,
13621362 reply_markup : types .InlineKeyboardMarkup
13631363 | types .ReplyKeyboardMarkup
@@ -1418,7 +1418,7 @@ async def reply_animation(
14181418 height (``int``, *optional*):
14191419 Animation height.
14201420
1421- thumb (``str``, *optional*):
1421+ thumb (``str | BinaryIO ``, *optional*):
14221422 Thumbnail of the animation file sent.
14231423 The thumbnail should be in JPEG format and less than 200 KB in size.
14241424 A thumbnail's width and height should not exceed 320 pixels.
@@ -1500,7 +1500,7 @@ async def reply_audio(
15001500 duration : int = 0 ,
15011501 performer : str | None = None ,
15021502 title : str | None = None ,
1503- thumb : str | None = None ,
1503+ thumb : str | BinaryIO | None = None ,
15041504 disable_notification : bool | None = None ,
15051505 reply_to_message_id : int | None = None ,
15061506 reply_markup : types .InlineKeyboardMarkup
@@ -1556,7 +1556,7 @@ async def reply_audio(
15561556 title (``str``, *optional*):
15571557 Track name.
15581558
1559- thumb (``str``, *optional*):
1559+ thumb (``str | BinaryIO ``, *optional*):
15601560 Thumbnail of the music file album cover.
15611561 The thumbnail should be in JPEG format and less than 200 KB in size.
15621562 A thumbnail's width and height should not exceed 320 pixels.
@@ -1837,7 +1837,7 @@ async def reply_document(
18371837 self ,
18381838 document : str | BinaryIO ,
18391839 quote : bool | None = None ,
1840- thumb : str | None = None ,
1840+ thumb : str | BinaryIO | None = None ,
18411841 caption : str = "" ,
18421842 parse_mode : enums .ParseMode | None = None ,
18431843 caption_entities : list [types .MessageEntity ] | None = None ,
@@ -1880,7 +1880,7 @@ async def reply_document(
18801880 If *reply_to_message_id* is passed, this parameter will be ignored.
18811881 Defaults to ``True`` in group chats and ``False`` in private chats.
18821882
1883- thumb (``str``, *optional*):
1883+ thumb (``str | BinaryIO ``, *optional*):
18841884 Thumbnail of the file sent.
18851885 The thumbnail should be in JPEG format and less than 200 KB in size.
18861886 A thumbnail's width and height should not exceed 320 pixels.
@@ -2725,7 +2725,7 @@ async def reply_video(
27252725 duration : int = 0 ,
27262726 width : int = 0 ,
27272727 height : int = 0 ,
2728- thumb : str | None = None ,
2728+ thumb : str | BinaryIO | None = None ,
27292729 supports_streaming : bool = True ,
27302730 disable_notification : bool | None = None ,
27312731 reply_to_message_id : int | None = None ,
@@ -2790,7 +2790,7 @@ async def reply_video(
27902790 height (``int``, *optional*):
27912791 Video height.
27922792
2793- thumb (``str``, *optional*):
2793+ thumb (``str | BinaryIO ``, *optional*):
27942794 Thumbnail of the video sent.
27952795 The thumbnail should be in JPEG format and less than 200 KB in size.
27962796 A thumbnail's width and height should not exceed 320 pixels.
@@ -2873,7 +2873,7 @@ async def reply_video_note(
28732873 quote : bool | None = None ,
28742874 duration : int = 0 ,
28752875 length : int = 1 ,
2876- thumb : str | None = None ,
2876+ thumb : str | BinaryIO | None = None ,
28772877 disable_notification : bool | None = None ,
28782878 reply_to_message_id : int | None = None ,
28792879 reply_markup : types .InlineKeyboardMarkup
@@ -2918,7 +2918,7 @@ async def reply_video_note(
29182918 length (``int``, *optional*):
29192919 Video width and height.
29202920
2921- thumb (``str``, *optional*):
2921+ thumb (``str | BinaryIO ``, *optional*):
29222922 Thumbnail of the video sent.
29232923 The thumbnail should be in JPEG format and less than 200 KB in size.
29242924 A thumbnail's width and height should not exceed 320 pixels.
0 commit comments