18 return rawJson().value(
"result");
22 return rawJson().value(
"error_code").toInt();
26 return rawJson().value(
"description").toString();
42 return rawJson().value(
"ok").toBool();
const QJsonObject & rawJson() const
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobje...
QVariant chatId() const override
from This virtual function should return name of the chat when sent this message to bot.
unsigned long long updateId() const override
updateId This method returns numeric id of the update.
QString errorDescription() const
errorDescription This is text description : what is happend.
int errorCode() const
errorCode This is error code (if exist)
QJsonValue result() const
result This is result filed of thetelegram responce.
bool isValid() const override
isValid return true if the message is valid else false.
QString from() const override
from This virtual function should return name of the user that sent this message to bot.