What this bot does
This Telegram bot converts documents and merges PDFs.
Supported actions
- PDF to Word (.docx)
- Word (.doc/.docx) to PDF
- Merge multiple PDFs into one PDF
Public commands
-
/start What it does: Welcome message and quick instructions. Usage: /start
-
/help What it does: Shows help and examples. Usage: /help
-
/status What it does: Shows your current mode (if any), merge queue count, and last action. Usage: /status
-
/reset What it does: Clears your workflow state and clears your stored memory. Usage: /reset
How to use in chat
- Send “pdf to word” then upload a PDF.
- Send “word to pdf” then upload a DOC/DOCX.
- Send “merge pdfs” then upload PDFs in order. When ready, send “done” or press “Merge now”.
While merging, you can also send “remove last” or “clear”.
Environment variables
-
TELEGRAM_BOT_TOKEN (required) Telegram bot token.
-
COOKMYBOTS_AI_ENDPOINT (required) Base URL for the CookMyBots AI gateway. Must be a base URL ending with /api/ai.
-
COOKMYBOTS_AI_KEY (required) API key for the CookMyBots AI gateway.
-
MONGODB_URI (optional) MongoDB connection string for long-term memory.
-
MAX_FILE_MB (optional) Maximum allowed file size in MB. Default is 20.
-
ADMIN_TELEGRAM_USER_ID (optional) If set, enables /admin_stats for that Telegram user id.
Run
- Install: npm install
- Start: npm start
- Dev: npm run dev