diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index ed57fdf2b..a84890032 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -1073,7 +1073,7 @@ void Panel::closeWithConfirmation() { }); if (!weak) { return; - } else if (result.id != "cancel") { + } else if (result.id == "close") { _delegate->botClose(); } else { _closeWithConfirmationScheduled = false;