From 0a847c4de70731316cb13de34bedca68627c1dad Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 29 Jul 2018 02:05:07 +0300 Subject: [PATCH] Added the field thumb to the Audio object to contain the thumbnail of the album cover to which the music file belongs. --- aiogram/types/audio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiogram/types/audio.py b/aiogram/types/audio.py index ed323f81..9423d02c 100644 --- a/aiogram/types/audio.py +++ b/aiogram/types/audio.py @@ -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)