Skip to content

Commit

Permalink
fix get user again
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 4, 2024
1 parent 9d22895 commit 335e172
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bot/src/rabbit/routers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 335e172

Please sign in to comment.