Telegram feedback bot for the HM team. Users message the bot privately — messages are forwarded to a support group chat. Admins reply directly in the group via reply — the response is delivered back to the user's DM.
- Message routing — relay between user DMs and the admin group via reply
- Edit sync — message edits are reflected in both directions
- Media groups — album support (photos, videos, documents, audio)
- User blocking —
/banto block/unblock via reply - Silent mode —
/silentdisables reply delivery to a specific user - User info —
/informationshows profile, status, registration date - Newsletter —
/newsletterfor mass notifications (admin only) - Multi-language — UI in English and Russian
- Redis storage — message mapping with 30-day TTL, user data in hash
graph TB
A[Telegram Users] --> B[HM Support Bot]
B --> C[Message Router]
B --> D[User Manager]
C --> E[Redis Message Mapping]
D --> E
E --> F[Redis Cache]
B --> G[Telegram Bot API]
G --> A
B --> H[Group Chat]
H --> B
subgraph AdminCommands
I["/ban - Block User"]
J["/silent - Silent Mode"]
K["/information - User Info"]
end
AdminCommands --> B
- deps: Linux, Docker, Python 3.11+, Redis
- env:
cp .env.example .envand fill in the variables - install:
pip install -r requirements.txt - dev:
python -m bot - prod:
docker compose up -d