mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Add missing thumb for videos in albums. Fixes #169
This commit is contained in:
parent
067b988537
commit
49b18c600d
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ class SendMediaGroup(BaseClient):
|
|||
peer=self.resolve_peer(chat_id),
|
||||
media=types.InputMediaUploadedDocument(
|
||||
file=self.save_file(i.media),
|
||||
thumb=None if i.thumb is None else self.save_file(i.thumb),
|
||||
mime_type=mimetypes.types_map[".mp4"],
|
||||
attributes=[
|
||||
types.DocumentAttributeVideo(
|
||||
|
|
|
|||
Loading…
Reference in a new issue