From 58cb30d97cf5b2ea57f2d809f5d9273fa0c7e82c Mon Sep 17 00:00:00 2001 From: MBRCTV <39084010+MBRCTV@users.noreply.github.com> Date: Tue, 29 Jan 2019 16:36:21 -0500 Subject: [PATCH] Added missing 'await' on thumb --- pyrogram/client/methods/messages/send_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/messages/send_video.py b/pyrogram/client/methods/messages/send_video.py index 3c202b55..aecffe28 100644 --- a/pyrogram/client/methods/messages/send_video.py +++ b/pyrogram/client/methods/messages/send_video.py @@ -133,7 +133,7 @@ class SendVideo(BaseClient): try: 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) media = types.InputMediaUploadedDocument( mime_type=mimetypes.types_map[".mp4"],