PDF Genie is a Telegram bot designed in assisting users with a variety of PDF operations, including merging, splitting, locking, unlocking, and compressing PDF files. This bot is built using Python and the python-telegram-bot
library.
- Merge PDFs: Combine multiple PDF files into a single document.
- Split PDFs: Separate a PDF file into individual documents based on specified pages.
- Lock PDFs: Secure your PDF with a password.
- Unlock PDFs: Remove password protection from a PDF by providing the correct password.
- Compress PDFs: Decrease the file size of a PDF.
- PDF Content Management Tips: Receive helpful tips for effective PDF management.
- Contact Information: Get in touch for support or inquiries.
/start
: Begin interacting with the bot./help
: Display a list of available commands./content
: Obtain tips for managing and working with PDFs./contact
: View contact information for support./merge
: Upload multiple PDF files to merge them into one./split
: Provide a PDF file to split into multiple documents based on page selection./lock
: Lock a PDF with a password for security./unlock
: Unlock a password-protected PDF./compress
: Compress a PDF to reduce its size.
To set up and run the bot locally, please follow the instructions below:
git clone https://github.com/your-username/pdf-master-bot.git
Ensure you have Python installed, then install the required dependencies:
pip install -r requirements.txt
Create a .env
file in the root directory of the project and add the following content:
TOKEN=your-telegram-bot-token
ADMIN_ID=your-telegram-user-id
- Replace
your-telegram-bot-token
with the API token provided by BotFather. - Replace
your-telegram-user-id
with your Telegram user ID for administrative purposes.
Start the bot by executing:
python main.py
For deployment in the cloud, follow the instructions on PythonAnywhere.
- Python: The programming language used to develop the bot.
- python-telegram-bot: A library for interacting with the Telegram Bot API.
- PyPDF2: A library for manipulating PDF files (merging, splitting, locking, unlocking, and compressing).
- python-dotenv: A package for managing environment variables securely.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Implement your changes.
- Submit a pull request for review.
This project is licensed under the MIT License.
For any inquiries, suggestions, or support, please reach out via:
- Email: sankalpkumar911@gmail.com
- Telegram Bot: PDF Genie (@PDFGeniebot)
- LinkedIn: Sankalp Kumar