diff --git a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp index 4b18e97257..aba0a77399 100644 --- a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp +++ b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp @@ -282,6 +282,9 @@ AttachWebView::~AttachWebView() { void AttachWebView::request( not_null peer, const QString &botUsername) { + if (botUsername.isEmpty()) { + return; + } const auto username = _bot ? _bot->username : _botUsername; if (_peer == peer && username.toLower() == botUsername.toLower()) { if (_panel) {