Audio
class Audio extends BaseObject (View source)
Class Audio.
Methods
Property relations.
Get an item from the collection by key.
Unique identifier for this file.
Duration of the audio in seconds as defined by sender.
(Optional). Performer of the audio as defined by sender or by audio tags.
(Optional). Title of the audio as defined by sender or by audio tags.
(Optional). MIME type of the file as defined by sender.
(Optional). File size.
Details
in
BaseObject at line 17
__construct(
array|mixed $data)
Builds collection entity.
at line 21
array
relations()
Property relations.
in
BaseObject at line 39
mixed|BaseObject
get(
mixed $key,
mixed $default = null)
Get an item from the collection by key.
in
BaseObject at line 53
array|void
mapRelatives()
Map property relatives to appropriate objects.
in
BaseObject at line 83
array|mixed
getRawResponse()
Returns raw response.
in
BaseObject at line 95
mixed
getRawResult($data)
Returns raw result.
in
BaseObject at line 105
mixed
getStatus()
Get Status of request.
in
BaseObject at line 118
mixed
__call($name, $arguments)
Magic method to get properties dynamically.
at line 16
string
getFileId()
Unique identifier for this file.
at line 16
int
getDuration()
Duration of the audio in seconds as defined by sender.
at line 16
string
getPerformer()
(Optional). Performer of the audio as defined by sender or by audio tags.
at line 16
string
getTitle()
(Optional). Title of the audio as defined by sender or by audio tags.
at line 16
string
getMimeType()
(Optional). MIME type of the file as defined by sender.
at line 16
int
getFileSize()
(Optional). File size.