mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
Added missing 'await' on thumb
This commit is contained in:
parent
6c7a3316dd
commit
58cb30d97c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue