A Telegram bot to add customizable watermarks to videos. This bot allows users to add a PNG/JPG/GIF watermark to videos with options to adjust position, size, and quality using interactive buttons.
- Interactive Setup: Use inline buttons to set watermark position, size, and quality.
- Watermark Formats: Supports PNG, JPG, and GIF for watermarks.
- Customizable Settings: Easily adjust watermark position, size, and video quality.
- Video Processing: Uses FFmpeg for efficient video processing.
- Error Handling: Informs users about missing steps or errors.
/startor/help: Get started with instructions and options to set watermark properties.
- Set Position: Choose from Top-Left, Top-Right, Bottom-Left, Bottom-Right.
- Set Size: Options for 50%, 75%, 100%.
- Set Quality: Options for Low, Medium, High.
-
Clone the repository:
git clone https://github.com/yourusername/TG-watermark.git cd TG-watermark -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables: Create a
.envfile and add your configuration variables:BOT_TOKEN=your-bot-token API_ID=your-api-id API_HASH=your-api-hash LOG_CHANNEL=your-log-channel-id UPDATES_CHANNEL=your-updates-channel-id OWNER_ID=your-owner-id -
Run the bot:
python bot.py
-
Build the Docker image:
docker build -t tg-watermark-bot . -
Run the Docker container:
docker run -d --env-file .env --name tg-watermark-bot tg-watermark-bot
-
Create a Heroku app:
heroku create tg-watermark-bot
-
Set Heroku environment variables:
heroku config:set BOT_TOKEN=your-bot-token heroku config:set API_ID=your-api-id heroku config:set API_HASH=your-api-hash heroku config:set LOG_CHANNEL=your-log-channel-id heroku config:set UPDATES_CHANNEL=your-updates-channel-id heroku config:set OWNER_ID=your-owner-id
-
Deploy to Heroku:
git push heroku main
TG-watermark/
├── core/
│ ├── __init__.py
│ ├── ffmpeg.py
│ ├── clean.py
├── Procfile
├── README.md
├── app.json
├── bot.py
├── config.env
├── config.py
├── requirements.txt
├── runtime.txt
Contributions are welcome! Please fork the repository and submit a pull request for any improvements.
This project is licensed under the MIT License. See the LICENSE file for details.
- This project was inspired by AbirHasan2005/Watermark-Bot.
- Thanks to the contributors of the Pyrogram and FFmpeg projects for their amazing tools.
Feel free to customize this README.md further to suit your specific needs.