diff --git a/bot/src/rabbit/routers/admin.py b/bot/src/rabbit/routers/admin.py index 11a0730..dacdc35 100644 --- a/bot/src/rabbit/routers/admin.py +++ b/bot/src/rabbit/routers/admin.py @@ -35,6 +35,12 @@ async def msg(res: TelegramRequestResponse) -> None: @router.subscriber("user-res") async def msg(res: TelegramRequestResponse | GetUserResponse) -> None: + if not res.success: + return await bot.send_message( + chat_id = TG_ADMIN_CHAT, + reply_to_message_id = res.msg_id, + text = "❕ Неверный пользователь" + ) await send_media( chat_id = TG_ADMIN_CHAT, text = res.text,