separated clients handlers, cart->checkout ppline

This commit is contained in:
2026-02-11 20:53:47 +07:00
parent 6409d66dfd
commit a3aaafd7ac
20 changed files with 658 additions and 369 deletions

View File

@@ -0,0 +1,20 @@
from aiogram import Router, F
from aiogram.enums import MessageOriginType
from aiogram.types import Message
from config import VERIFIED_ACCOUNTS
router = Router()
@router.message(F.forward_origin)
async def security_check(msg: Message):
if (
msg.forward_origin.type == MessageOriginType.USER
and msg.forward_origin.sender_user.id in VERIFIED_ACCOUNTS
):
text = "🍃 Вы общаетесь с оффициальным аккаунтом Екатерины."
else:
text = "<b>❌ Вы общаетесь с подставным лицом. Мы советуем закончить диалог с мошенником как можно быстрее.</b>"
await msg.answer(text)