Multiple Styles β’ Customizable β’ Easy to Use
Features β’ Installation β’ Usage β’ Contributing
- 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!