A simple Telegram bot that converts images into a single PDF file.
👉 Try it here: https://t.me/mirocopy_converter_bot
- 📷 Convert single image to PDF
- 🖼 Convert multiple images (albums) into one PDF
- 🗒 Convert txt file to pdf
- 🌍 Multi-language support
- 🔍 Inline-mode support
- ⚡ Fast and asynchronous processing
- 🧹 Automatic temporary file cleanup
- Python 3.13
- Aiogram 3.x - Telegram Bot framework
- img2pdf - Image to PDF conversion
- python-dotenv - Environment variables management
git clone https://github.com/eugeneviktorov/mirocopy-converter-bot.git
cd mirocopy-converter-botCreate a .env file in the project root:
BOT_TOKEN=your_telegram_bot_token
DEBUG_MODE=Truepython -m venv .venvsource .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windowspip install -r requirements.txtpython main.pydocker-compose up --build -dMake sure .env file exists on the server.
Environment variables:
| Variable | Description |
|---|---|
| BOT_TOKEN | Telegram bot API token |
| DEBUG_MODE | Telegram bot debug mode |
- English (EN)
- Russian (RU)
- Spanish (ES)
- Portuguese (PT)
- Indonesian (ID)
- Arabic (AR)
Language is automatically detected from Telegram settings.
assets/
bot/
core/
handlers/
locales/
services/
telegram/
ui/
utils/
docs/
.gitignore
deploy.sh
docker-compose.yml
Dockerfile
LICENSE
main.py
README.md
requirements.txt- The user sends an image(s) or file
- The bot downloads the data
- Converts them into PDF
- Sends PDF back to user
- Cleans temporary files
- Large files or albums may take a few seconds to process
- Temporary files are deleted automatically