mirror of
https://github.com/moritzsternemann/QtTelegramBot.git
synced 2025-07-29 19:07:14 +02:00
Merge pull request #1 from 0xFEEDC0DE64/master
Small fixes and improvments
This commit is contained in:
@ -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";
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include "networking.h"
|
||||
|
||||
#include <ctime>
|
||||
|
||||
using namespace Telegram;
|
||||
|
||||
Networking::Networking(QString token, QObject *parent) :
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
Private, Group, Channel
|
||||
};
|
||||
|
||||
quint32 id;
|
||||
qint32 id;
|
||||
ChatType type;
|
||||
QString title;
|
||||
QString username;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user