diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 63e24bc020..5ead55b273 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1046,6 +1046,9 @@ bool MainWidget::sendMessageFail(const RPCError &error) { if (error.type() == qstr("PEER_FLOOD")) { Ui::show(Box(PeerFloodErrorText(PeerFloodType::Send))); return true; + } else if (error.type() == qstr("USER_BANNED_IN_CHANNEL")) { + Ui::show(Box(lang(lng_group_not_accessible))); + return true; } return false; }