mirror of
https://github.com/moritzsternemann/QtTelegramBot.git
synced 2025-07-30 11:27: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);
|
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);
|
QObject::connect(bot, &Telegram::Bot::message, &newMessage);
|
||||||
qDebug() << "Started Telegram Bot";
|
qDebug() << "Started Telegram Bot";
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "networking.h"
|
#include "networking.h"
|
||||||
|
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
using namespace Telegram;
|
using namespace Telegram;
|
||||||
|
|
||||||
Networking::Networking(QString token, QObject *parent) :
|
Networking::Networking(QString token, QObject *parent) :
|
||||||
|
@ -17,7 +17,7 @@ public:
|
|||||||
Private, Group, Channel
|
Private, Group, Channel
|
||||||
};
|
};
|
||||||
|
|
||||||
quint32 id;
|
qint32 id;
|
||||||
ChatType type;
|
ChatType type;
|
||||||
QString title;
|
QString title;
|
||||||
QString username;
|
QString username;
|
||||||
|
@ -13,7 +13,7 @@ public:
|
|||||||
User() : id(0), firstname(QString()), lastname(QString()), username(QString()) {}
|
User() : id(0), firstname(QString()), lastname(QString()), username(QString()) {}
|
||||||
User(QJsonObject user);
|
User(QJsonObject user);
|
||||||
|
|
||||||
quint32 id;
|
qint32 id;
|
||||||
QString firstname;
|
QString firstname;
|
||||||
QString lastname;
|
QString lastname;
|
||||||
QString username;
|
QString username;
|
||||||
|
Reference in New Issue
Block a user