# 本地tgchats

如果 `auth` 或其他 Telegram 命令显示登录二维码，应向用户展示完整的二维码区块和过期时间；持续运行该进程，直到登录完成、需要双重验证或用户要求停止。

如果本地 `tgchats-mcp` 可用，请使用它。否则：

- `npm run dev -- search "urgent" --limit 50 --json`
- `npm run dev -- chat <peer> --limit 50 --json`
- `npm run dev -- tags set <peer> Support Escalated --json`
- `npm run dev -- tasks add <peer> --due <date> --priority high --why "<support escalation>" --json`
- `npm run dev -- rules add --name "Support escalation" --instruction "Create a high-priority task when a customer reports an urgent bug, outage, payment issue, or customer risk." --tag Escalated --followup-days 1 --json`
