This commit is contained in:
Starter 2025-08-26 16:41:00 +00:00 committed by GitHub
commit bcdf9bec7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)