qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
|
The TelegramFile class is base class for all files. More...
#include <telegramfile.h>
Public Member Functions | |
TelegramFile () | |
TelegramFile (const QJsonObject &jsonObject) | |
Constructs a Photo object from a JSON object. | |
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. | |
Public Member Functions inherited from qTbot::IJsonBasedObject | |
IJsonBasedObject () | |
IJsonBasedObject (const QJsonObject &newRawJson) | |
const QJsonObject & | rawJson () const |
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobject. | |
virtual void | setRawJson (const QJsonObject &newRawJson) |
setRawJson this method convert jsobject into telegram message. | |
The TelegramFile class is base class for all files.
Definition at line 17 of file telegramfile.h.
qTbot::TelegramFile::TelegramFile | ( | ) |
Definition at line 13 of file telegramfile.cpp.
qTbot::TelegramFile::TelegramFile | ( | const QJsonObject & | jsonObject | ) |
Constructs a Photo object from a JSON object.
jsonObject | The JSON object containing photo data. |
Definition at line 17 of file telegramfile.cpp.
QString qTbot::TelegramFile::fileId | ( | ) | const |
Returns the file ID of the photo.
Definition at line 34 of file telegramfile.cpp.
int qTbot::TelegramFile::fileSize | ( | ) | const |
Returns the file size of the photo.
Definition at line 21 of file telegramfile.cpp.
QString qTbot::TelegramFile::fileUniqueId | ( | ) | const |
Returns the unique ID of the photo.
Definition at line 39 of file telegramfile.cpp.
QString qTbot::TelegramFile::takePath | ( | ) |
Returns the file path to get from web.
Definition at line 25 of file telegramfile.cpp.