10#include "qjsondocument.h"
25 auto doc = QJsonDocument::fromJson(newRawData);
26 if (!doc.isObject()) {
const QJsonObject & rawJson() const
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobje...
virtual void setRawJson(const QJsonObject &newRawJson)
setRawJson this method convert jsobject into telegram message.
void setRawData(const QByteArray &newRawData) override
setRawData This method sets new raw data value.
bool isValid() const override
isValid return true if the message is valid else false.
virtual void setRawData(const QByteArray &newRawData)
setRawData This method sets new raw data value.