diff --git a/Telegram/SourceFiles/api/api_earn.cpp b/Telegram/SourceFiles/api/api_earn.cpp index f05e5f6188..432e1d2781 100644 --- a/Telegram/SourceFiles/api/api_earn.cpp +++ b/Telegram/SourceFiles/api/api_earn.cpp @@ -89,7 +89,10 @@ void HandleWithdrawalButton( } }; const auto fail = [=](const MTP::Error &error) { - show->showToast(error.type()); + const auto message = error.type(); + if (box && !box->handleCustomCheckError(message)) { + show->showToast(message); + } }; if (channel) { session->api().request(