Merge pull request #209 from MBRCTV/asyncio

Added missing 'await' on thumb
This commit is contained in:
Dan 2019-01-29 22:38:18 +01:00 committed by GitHub
commit 3bc128876f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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