mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 05:30:15 +00:00
Merge pull request #209 from MBRCTV/asyncio
Added missing 'await' on thumb
This commit is contained in:
commit
3bc128876f
@ -133,7 +133,7 @@ class SendVideo(BaseClient):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists(video):
|
if os.path.exists(video):
|
||||||
thumb = None if thumb is None else self.save_file(thumb)
|
thumb = None if thumb is None else await self.save_file(thumb)
|
||||||
file = await self.save_file(video, progress=progress, progress_args=progress_args)
|
file = await self.save_file(video, progress=progress, progress_args=progress_args)
|
||||||
media = types.InputMediaUploadedDocument(
|
media = types.InputMediaUploadedDocument(
|
||||||
mime_type=mimetypes.types_map[".mp4"],
|
mime_type=mimetypes.types_map[".mp4"],
|
||||||
|
Loading…
Reference in New Issue
Block a user