Workflow automation / Case study
Telegram Support Bot
Connect private customer conversations to a shared support workflow.
- Who it serves
- Support teams answering private Telegram messages from a shared group.
- What I built
- I built a Telegram support bot with message routing, persistence, and moderation.
- Availability
- Open-source project
Open-source projectTypeScript · grammY · MySQL · Webhooks
Private message→Stored message mapping→Support reply
The problem
A support team needs to reply from a shared group while keeping track of the original private conversation.
How it works
- Incoming private messages are copied to a configured support group.
- Stored message identifiers connect each support reply to its original user message.
- Blacklist handling, rate limiting, translated responses, and error handling support the workflow.
Engineering decisions
- Persist message relationships so replies can be routed to the correct conversation.
- Route messages and replies automatically while support staff write the answers.
The result
Inspectable source for a two-way Telegram support workflow, including database-backed message mapping.
Current status
To run the bot, configure a Telegram bot account, a MySQL database, and a webhook deployment.