mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 03:54:51 +00:00
Update send_video.py
This commit is contained in:
parent
cb38d6a02b
commit
d7f9ea1afe
1 changed files with 5 additions and 0 deletions
|
|
@ -335,6 +335,11 @@ class SendVideo:
|
|||
)
|
||||
else:
|
||||
media = utils.get_input_media_from_file_id(video, FileType.VIDEO, ttl_seconds=(1 << 31) - 1 if view_once else ttl_seconds)
|
||||
if vidcover_file is not None:
|
||||
try:
|
||||
media.video_cover = vidcover_file
|
||||
except Exception as e:
|
||||
pass
|
||||
media.spoiler = has_spoiler
|
||||
else:
|
||||
thumb = await self.save_file(thumb)
|
||||
|
|
|
|||
Loading…
Reference in a new issue