mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Fixed bot keyboard replies.
This commit is contained in:
@@ -1081,7 +1081,7 @@ void MainWidget::sendMessage(const MessageToSend &message) {
|
|||||||
QString command = parseCommandFromMessage(history, textWithTags.text);
|
QString command = parseCommandFromMessage(history, textWithTags.text);
|
||||||
HistoryItem *lastMessage = nullptr;
|
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)) {
|
while (command.isEmpty() && textSplit(sendingText, sendingEntities, leftText, leftEntities, MaxMessageSize)) {
|
||||||
FullMsgId newId(peerToChannel(history->peer->id), clientMsgId());
|
FullMsgId newId(peerToChannel(history->peer->id), clientMsgId());
|
||||||
uint64 randomId = rand_value<uint64>();
|
uint64 randomId = rand_value<uint64>();
|
||||||
|
Reference in New Issue
Block a user