A simple Telegram bot that converts images into PDF files.
- Converts images to PDF with one click
- Tracks your usage statistics
- Easy to use with simple commands
- Start the bot by sending
/start - Send any images you want to convert
- The bot will combine them into a PDF file
- Download your PDF when ready
/start- Get welcome message and instructions/usage- Check how many conversions you've done/clear- Reset your usage statistics
- Create a Telegram bot using BotFather
- Get your API credentials:
- API_ID from my.telegram.org
- API_HASH from same site
- Create a
.envfile with these details:API_ID=your_api_id API_HASH=your_api_hash BOT_TOKEN=your_bot_token ADMIN_ID=your_admin_id - Install requirements:
pip install -r requirements.txt
- Run the bot:
python telegram_pdf_to_img.py
- Python 3.6+
- Pyrogram
- Pillow (PIL)
- PyMuPDF (fitz)
- python-dotenv
For any issues, please create a issue.