19 return rawJson()[
"duration"].toInt();
23 return rawJson()[
"file_name"].toString();
27 return rawJson()[
"mime_type"].toString();
const QJsonObject & rawJson() const
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobje...
QString fileName() const
Returns the file name of the audio.
int duration() const
Returns the duration of the audio in seconds.
QString mimeType() const
Returns the MIME type of the audio.
The TelegramFile class is base class for all files.