diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index d8d9e317b..d1afb5455 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1782,7 +1782,7 @@ bool HistoryWidget::notify_switchInlineBotButtonReceived(const QString &query, U const auto to = bot->isBot() ? bot->botInfo->inlineReturnTo : Dialogs::EntryState(); - const auto history = to.key.history(); + const auto history = to.key.owningHistory(); if (!history) { return false; }