mirror of
https://github.com/QuasarApp/qTbot.git
synced 2025-04-26 05:44:32 +00:00
minor fixes
This commit is contained in:
parent
32e87db332
commit
e5a3babd03
@ -482,13 +482,13 @@ bool ITelegramBot::sendMessageRequest(const QSharedPointer<iRequest> &rquest,
|
||||
if (obj.contains("result")) {
|
||||
unsigned long long chatId = obj["result"]["chat"]["id"].toInteger();
|
||||
int messageID = obj["result"]["message_id"].toInt();
|
||||
if (chatId) {
|
||||
_lastMessageId[chatId] = messageID;
|
||||
}
|
||||
|
||||
if (msgIdCB) {
|
||||
msgIdCB(messageID);
|
||||
}
|
||||
|
||||
if (chatId) {
|
||||
_lastMessageId[chatId] = messageID;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user