
A support & ticketing module for bots
A reusable feedback module for grammY bots: user requests fly to an admin chat, replies come back.
Challenge. Stop rewriting support in every bot — extract it into a plug-and-play module that plugs in with a single line.
Approach. I extracted the common functionality into a standalone npm module with a clean API: it can run as a separate bot or embed into an existing one.
Solution. Node.js + grammY, SQLite for user → ticket mapping, a /support command that collects text, photos, documents, and voice (any media type), forwarding to the admin chat with user context, admin replies automatically routed back, and support for multi-message conversations.
Result. A ready-made support module I reuse across my bots (for example, in the todo bot) — an example of separation of concerns and shared infrastructure instead of copy-paste.
This isn't a standalone public bot but a module: it plugs into other bots with a single line and runs inside them.


