diff --git a/include.pri b/include.pri new file mode 100644 index 0000000..e5f2f1d --- /dev/null +++ b/include.pri @@ -0,0 +1,11 @@ + +HEADERS += \ + $$PWD/src/telegrambot.h \ + $$PWD/modules/httpserver/httpserver.h \ + $$PWD/vendor/qdelegate/include/qdelegate.h + +INCLUDEPATH += $$PWD/src/ +INCLUDEPATH += $$PWD/modules/sslserver/ +INCLUDEPATH += $$PWD/modules/httpserver/ +INCLUDEPATH += $$PWD/vendor/qdelegate/include/ + diff --git a/src/telegramdatastructs.h b/src/telegramdatastructs.h index c8e16c9..5023a75 100644 --- a/src/telegramdatastructs.h +++ b/src/telegramdatastructs.h @@ -234,7 +234,7 @@ typedef QList> TelegramKeyboard; // TelegramBotChat - This object represents a chat. struct TelegramBotChat : public TelegramBotObject { - qint32 id; // Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. + qint64 id; // Unique identifier for this chat. This number from now can be signed 64 bit integer or double-precision float type are safe for storing this identifier. QString type; // Type of chat, can be either “private”, “group”, “supergroup” or “channel” QString title; // Optional. Title, for supergroups, channels and group chats QString username; // Optional. Username, for private chats, supergroups and channels if available @@ -247,7 +247,7 @@ struct TelegramBotChat : public TelegramBotObject { // parse logic virtual void fromJson(QJsonObject& object) { - JsonHelperT::jsonPathGet(object, "id", this->id); + JsonHelperT::jsonPathGet(object, "id", this->id); JsonHelperT::jsonPathGet(object, "type", this->type); JsonHelperT::jsonPathGet(object, "title", this->title, false); JsonHelperT::jsonPathGet(object, "username", this->username, false);