mirror of
https://github.com/moritzsternemann/QtTelegramBot.git
synced 2025-07-29 19:07:14 +02:00
Removed unnecessary int cast
This commit is contained in:
@ -11,7 +11,7 @@ void newMessage(Telegram::Message message)
|
|||||||
qDebug() << "new message:" << message;
|
qDebug() << "new message:" << message;
|
||||||
|
|
||||||
if (bot && message.type == Telegram::Message::TextType) {
|
if (bot && message.type == Telegram::Message::TextType) {
|
||||||
bot->sendMessage((qint32)message.from.id, message.string);
|
bot->sendMessage(message.from.id, message.string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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