2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-05 00:35:10 +00:00

Added missing 'await' on thumb

This commit is contained in:
MBRCTV
2019-01-29 16:36:21 -05:00
committed by GitHub
parent 6c7a3316dd
commit 58cb30d97c

View File

@@ -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"],