mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added the field thumb to the Audio object to contain the thumbnail of the album cover to which the music file belongs.
This commit is contained in:
parent
6f3eda16e5
commit
0a847c4de7
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from . import base
|
||||
from . import fields
|
||||
from . import mixins
|
||||
from .photo_size import PhotoSize
|
||||
|
||||
|
||||
class Audio(base.TelegramObject, mixins.Downloadable):
|
||||
|
|
@ -15,3 +16,4 @@ class Audio(base.TelegramObject, mixins.Downloadable):
|
|||
title: base.String = fields.Field()
|
||||
mime_type: base.String = fields.Field()
|
||||
file_size: base.Integer = fields.Field()
|
||||
thumb: PhotoSize = fields.Field(base=PhotoSize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue