Multiple Styles • Customizable • Easy to Use
- Overview
- Features
- Requirements
- Installation
- Configuration
- Usage
- Project Structure
- Technologies Used
- Deployment
- Contributing
Logo Bot is a Telegram bot for adding watermarks (Logos) to images. Includes multiple placement styles, customizable size and opacity, user management, and Koyeb deployment support.
- 🖼️ Easy to Use - Add watermarks in simple steps
- 🎨 Customizable - Adjustable size, opacity, and position
- 📍 Multiple Styles - Different options for watermark placement
- 🚀 Easy Deployment - Full Koyeb support
| Feature | Description |
|---|---|
| 🖼️ Watermark Addition | Easily add logos to images |
| 📍 Multiple Styles | Different options for watermark placement (corner, center, etc.) |
| 🎚️ Customizable | Adjustable size and opacity |
| 👥 User Management | Track and manage users |
| 🚀 Koyeb Deployment | Easy deployment support on Koyeb |
| 🎯 Easy to Use | Simple and clear bot interface |
- ✅ Size: Watermark size ratio from image (10% - 50%)
- ✅ Opacity: Opacity level (0 - 255)
- ✅ Position: 9 different positions (top/middle/bottom × left/center/right)
- ✅ Formats: Support PNG, JPG, JPEG, WEBP
Before starting, make sure you have installed:
- Python 3.8 or higher
- Telegram Bot Token (from @BotFather)
- Logo Image in PNG format
- Git
# 1. Clone the repository
git clone https://github.com/3bkader-gpt/Logo_bot.git
cd Logo_bot
# 2. Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 3. Install requirements
pip install -r requirements.txt
# 4. Set up environment file
cp .env.example .env
# Edit .env file with your dataBOT_TOKEN=your_telegram_bot_token_here
LOGO_PATH=path/to/your/logo.png- Talk to @BotFather
- Create a new bot using
/newbot - Follow instructions and get Token
- Add Token in
.envfile:BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
- Prepare logo image in PNG format (transparent background recommended)
- Place image in project folder
- Add path in
.envfile:LOGO_PATH=./logo.png
You can modify default settings in code:
DEFAULT_SIZE = 0.15 # 15% of image size
DEFAULT_OPACITY = 200 # Medium opacity
DEFAULT_POSITION = "bottom-right" # Bottom right- ✅ Search for the bot in Telegram
- ✅ Start conversation using
/start - ✅ Send image you want to add watermark to
- ✅ Choose position from menu
- ✅ Choose size (small/medium/large)
- ✅ Choose opacity (transparent/medium/opaque)
- ✅ Get modified image
| Command | Description |
|---|---|
/start |
Start using the bot |
/help |
Show help and commands |
/settings |
Watermark settings |
/logo |
Change logo |
User: Send image
Bot: Choose watermark position:
1. Top left
2. Top center
3. Top right
...
User: 1
Bot: Choose watermark size:
1. Small (10%)
2. Medium (20%)
3. Large (30%)
User: 2
Bot: [Sends modified image]
Logo_bot/
├── 📄 bot.py # Main bot code
├── 📄 main.py # Entry point
├── 📄 .env.example # Environment file example
├── 📄 requirements.txt # Requirements
└── 🖼️ logo.png # Logo image (add yourself)
| Technology | Description |
|---|---|
| Main programming language | |
| Telegram bot | |
| Image processing | |
| Web server (for Koyeb deployment) |
- ✅ Create account on Koyeb
- ✅ Link repository from GitHub
- ✅ Add environment variables:
BOT_TOKEN: Bot tokenLOGO_PATH: Logo path
- ✅ Deploy application
- Build Command:
pip install -r requirements.txt - Start Command:
python main.py - Environment: Python 3.8+
Contributions are welcome! 🎉
- 🍴 Fork the project
- 🌿 Create a branch (
git checkout -b feature/AmazingFeature) - 💾 Commit (
git commit -m 'Add some AmazingFeature') - 📤 Push (
git push origin feature/AmazingFeature) - 🔄 Open a Pull Request
- ✨ Add new watermark styles
- 🎨 Improve image processing quality
- 📱 Add animated image support (GIF)
- 🔄 Multi-logo support
- ⚖️ Make sure you have permission to use images and watermarks
- 🔒 Protect your bot information
- 📊 Monitor memory usage when processing large images
This project is open source and available for free use.
- 🐛 Report Issues: Open an Issue
- 💡 Suggest Features: Open an Issue
- 📧 Email: medo.omar.salama@gmail.com
Made with ❤️ by Mohamed Omar
⭐ If you like this project, don't forget to give it a star!