From ed4e57248321c801a1005ecedeca9f8f338dbffb Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 23 May 2016 16:14:54 +0300 Subject: [PATCH] Fixed bot keyboard replies. --- Telegram/SourceFiles/mainwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 58ab10f88..99dd10f29 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -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();