Merge pull request #1 from 0xFEEDC0DE64/master

Small fixes and improvments
This commit is contained in:
Moritz Sternemann
2017-05-17 01:20:40 +02:00
committed by GitHub
4 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,7 @@ int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
bot = new Telegram::Bot(TOKEN, false, 500, 4);
bot = new Telegram::Bot(TOKEN, true, 500, 4);
QObject::connect(bot, &Telegram::Bot::message, &newMessage);
qDebug() << "Started Telegram Bot";

View File

@ -1,5 +1,7 @@
#include "networking.h"
#include <ctime>
using namespace Telegram;
Networking::Networking(QString token, QObject *parent) :

View File

@ -17,7 +17,7 @@ public:
Private, Group, Channel
};
quint32 id;
qint32 id;
ChatType type;
QString title;
QString username;

View File

@ -13,7 +13,7 @@ public:
User() : id(0), firstname(QString()), lastname(QString()), username(QString()) {}
User(QJsonObject user);
quint32 id;
qint32 id;
QString firstname;
QString lastname;
QString username;