diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index e54e7cd7e2..c844479e6b 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1433,8 +1433,7 @@ bool HistoryWidget::notify_switchInlineBotButtonReceived(const QString &query, U if (_history) { TextWithTags textWithTags = { '@' + samePeerBot->username + ' ' + query, TextWithTags::Tags() }; MessageCursor cursor = { textWithTags.text.size(), textWithTags.text.size(), QFIXED_MAX }; - auto replyTo = _history->peer->isUser() ? 0 : samePeerReplyTo; - _history->setLocalDraft(std::make_unique(textWithTags, replyTo, cursor, false)); + _history->setLocalDraft(std::make_unique(textWithTags, 0, cursor, false)); applyDraft(); return true; }