A Telegram bot that automatically forwards content from one channel to another with watermark support and full customization options.
- Node.js 16.x or higher
- Git
- Telegram Bot Token
- Try Vercel/Render/Koyeb/Heroku/Zeet account (or any other hosting service)
- Click the
Forkbutton at the top right of this repository
Create a .env file with these variables:
BOT_TOKEN=your_bot_token_from_BotFather
SOURCE_CHANNEL_ID=your_source_channel_id
DESTINATION_CHANNEL_ID=your_destination_channel_id
ADMIN_ID=your_telegram_user_id
VERCEL_URL=your_App_name.vercel.app- Vercel:
curl -X POST "https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://YOUR_VERCEL_APP.vercel.app/webhook"
Check if webhook is set:
curl "https://api.telegram.org/botYOUR_BOT_TOKEN/getWebhookInfo"
curl -X POST "https://api.telegram.org/botYOUR_BOT_TOKEN/deleteWebhook"
- Heroku:
curl -X POST "https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://YOUR_APP_NAME.herokuapp.com/webhook"
- Must use HTTPS (not HTTP)
- URL must end with
/webhookor your endpoint path - For security, always use a
secret_token - Timeout: Webhook requests timeout after 60 seconds
- Automatic content forwarding between channels
- Supports multiple file types (videos, photos, documents, audio)
- Configurable forwarding rules and filters
- Custom watermark text support
- Toggle auto-forwarding on/off
- Silent mode (disable notifications)
- File type filtering (forward only specific media types)
- Manual post forwarding commands
- Bulk forward old posts (/forwardold)
- Real-time configuration changes
- Admin-only command protection
- Persistent settings with cache
- Error handling and logging
- Webhook and polling support
- Multi-platform deployment
- Last forwarded post tracking
- Bot status commands
- Activity logging
- One-click Heroku deployment
- Vercel/Railway/Zeet support
- Local development ready
- Environment variable configuration
- Admin ID verification
- Markdown injection protection
- Error rate limiting
- Interactive buttons for quick actions
- Help command with visual guide
- Multi-language support ready
/start - Show bot status
/help - Show help guide
/forward - Manually forward last post
/forwardold [count] - Forward old posts
/autoforward [on/off] - Toggle auto-forwarding
/silent [on/off] - Toggle silent mode
/settypes [types] - Set file types to forward
/setwatermark [text] - Set watermark text
/togglewatermark - Toggle watermark on/off
For help contact:
@Support_Username
Or visit our channel:
@Channel_Username
