Skip to content

Commit 6f3745d

Browse files
committed
Added thumb to Audio entity.
1 parent 574894e commit 6f3745d

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/Entities/Audio.php

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,23 @@
1515
*
1616
* @link https://core.telegram.org/bots/api#audio
1717
*
18-
* @method string getFileId() Unique identifier for this file
19-
* @method int getDuration() Duration of the audio in seconds as defined by sender
20-
* @method string getPerformer() Optional. Performer of the audio as defined by sender or by audio tags
21-
* @method string getTitle() Optional. Title of the audio as defined by sender or by audio tags
22-
* @method string getMimeType() Optional. MIME type of the file as defined by sender
23-
* @method int getFileSize() Optional. File size
18+
* @method string getFileId() Unique identifier for this file
19+
* @method int getDuration() Duration of the audio in seconds as defined by sender
20+
* @method string getPerformer() Optional. Performer of the audio as defined by sender or by audio tags
21+
* @method string getTitle() Optional. Title of the audio as defined by sender or by audio tags
22+
* @method string getMimeType() Optional. MIME type of the file as defined by sender
23+
* @method int getFileSize() Optional. File size
24+
* @method PhotoSize getThumb() Optional. Thumbnail of the album cover to which the music file belongs
2425
*/
2526
class Audio extends Entity
2627
{
27-
28+
/**
29+
* {@inheritdoc}
30+
*/
31+
protected function subEntities()
32+
{
33+
return [
34+
'thumb' => PhotoSize::class,
35+
];
36+
}
2837
}

0 commit comments

Comments
 (0)