2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed bot keyboard replies.

This commit is contained in:
John Preston
2016-05-23 16:14:54 +03:00
parent 533a955dda
commit ed4e572483

View File

@@ -1081,7 +1081,7 @@ void MainWidget::sendMessage(const MessageToSend &message) {
QString command = parseCommandFromMessage(history, textWithTags.text);
HistoryItem *lastMessage = nullptr;
MsgId replyTo = (message.replyTo < 0) ? _history->replyToId() : 0;
MsgId replyTo = (message.replyTo < 0) ? _history->replyToId() : message.replyTo;
while (command.isEmpty() && textSplit(sendingText, sendingEntities, leftText, leftEntities, MaxMessageSize)) {
FullMsgId newId(peerToChannel(history->peer->id), clientMsgId());
uint64 randomId = rand_value<uint64>();