mirror of
https://github.com/moritzsternemann/QtTelegramBot.git
synced 2025-06-25 02:31:33 +02:00
Removed unnecessary int cast
This commit is contained in:
@ -11,7 +11,7 @@ void newMessage(Telegram::Message message)
|
||||
qDebug() << "new message:" << message;
|
||||
|
||||
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
|
||||
};
|
||||
|
||||
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