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:
Alex Root Junior 2018-07-29 02:05:07 +03:00
parent 6f3eda16e5
commit 0a847c4de7

View file

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