22 return rawJson()[
"file_size"].toInt();
31 return rawJson()[
"file_path"].toString();
35 return rawJson()[
"file_id"].toString();
40 return rawJson()[
"file_unique_id"].toString();
The IJsonBasedObject class This is base interface for all json base objects.
const QJsonObject & rawJson() const
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobje...
QString fileId() const
Returns the file ID of the photo.
QString fileUniqueId() const
Returns the unique ID of the photo.
int fileSize() const
Returns the file size of the photo.
QString takePath()
Returns the file path to get from web.