Broadcasting Methods
Using Telegram Bot Commands
The easiest way to broadcast messages directly from your Telegram client.Available commands:
/broadcast- Send to all users/broadcast_active- Send to active subscribers only/broadcast_premium- Send to premium users only/broadcast_promo- Send promo offer with payment button
Bot Commands Reference
Send to Everyone
- Active subscribers
- Expired subscribers
- Users who just clicked /start
Send to Active Subscribers
- Feature announcements
- Trading signals updates
- Engagement campaigns
This is the recommended default for most announcements.
Send to Premium Users
- Auto Copier updates
- Premium-exclusive features
- Upsell opportunities to premium users
Send Promo Broadcast
- Creates FRESH payment links
- Links expire after 48 hours
- Includes βVerify Promo Paymentβ button
Promo links work ONCE only. After expiry, you need to send a new broadcast with fresh links.
API Endpoint Usage
Authentication
All broadcast API requests require theADMIN_SECRET token:
Send Broadcast (POST)
Endpoint:/api/admin/broadcast
Request Body:
| Parameter | Type | Default | Description |
|---|---|---|---|
message | string | required | Message content (HTML supported) |
planType | string | "all" | Target specific plan or all users |
activeOnly | boolean | false | Only send to active subscribers |
Get Stats (GET)
Endpoint:/api/admin/broadcast
Returns subscriber statistics before broadcasting:
Message Formatting
Telegram supports HTML formatting in broadcast messages:Example Messages
Simple Promotion
Simple Promotion
Plan Upgrade Announcement
Plan Upgrade Announcement
New Feature Announcement
New Feature Announcement
Best Practices
Rate Limiting
Telegram enforces strict rate limits:- 20 messages per second to different users
- 1 message per second to the same user
For large broadcasts (1000+ users), expect ~2-3 minutes for completion.
Troubleshooting
Unauthorized Error
Unauthorized Error
Forbidden Error
Forbidden Error
Problem: API returns 403 ForbiddenSolutions:
ADMIN_SECRETdoesnβt match server value- Check environment variable is set in production (Vercel)
- Verify deployment has latest environment variables
Some Users Failed
Some Users Failed
Problem: Not all messages delivered successfullyThis is normal:
- Users may have blocked the bot
- Users may have deleted their Telegram account
- Users may have cleared chat history
- Expect 5-10% failure rate
- Review
failedUsersarray in response - Consider removing consistently failing users from database
Bot Command Not Working
Bot Command Not Working
Problem: Broadcast commands donβt respondSolutions:
- Verify youβre logged in as admin (check
ADMIN_IDin config) - Ensure bot is running and webhook is active
- Check bot logs for errors
- Try
/botstatsto confirm admin access
Security Considerations
Related Commands
- User Management - Check individual user status
- Statistics - View bot usage analytics
- Promo Codes - Create promotional offers