Prerequisites
- Telegram account
- BotFather bot access
Setup
Create Telegram bot
- Open Telegram and search for
@BotFather - Send
/newbotcommand - Follow prompts to set bot name and username
- Copy the API token provided by BotFather
Features
- Real-time messaging - Instant message sync
- Rich media - Images, videos, audio, documents, stickers
- File sharing - Send and receive files up to 50MB
- Bot commands - Custom commands for automation
- Inline keyboards - Interactive buttons
- Group chats - Add bot to groups (if enabled)
- Location sharing - Send and receive locations
Bot Commands
Set up bot commands for quick actions:Configure Commands in BotFather
- Send
/setcommandsto BotFather - Select your bot
- Send commands list:
Handle Commands in Chatwoot
Commands appear as regular messages in Chatwoot. Use automation rules to respond to specific commands.Inline Keyboards
Send interactive buttons to users:Configuration Options
Telegram bot API token from BotFather
Bot display name
Privacy & Groups
Privacy Mode
By default, bots in groups only see:- Messages that start with
/(commands) - Messages that mention the bot
- Messages sent by the bot
- Send
/setprivacyto BotFather - Select your bot
- Choose
Disable
Adding Bot to Groups
- Enable group messages in BotFather:
/setjoingroups - Add bot to your Telegram group
- Group conversations appear in Chatwoot
Media Handling
Supported File Types
- Images: JPEG, PNG, GIF
- Videos: MP4, MOV
- Audio: MP3, OGG, WAV
- Documents: PDF, DOC, DOCX, ZIP, etc.
- Stickers: Telegram stickers
File Size Limits
- Photos: 10MB
- Videos: 50MB
- Documents: 50MB
- Audio: 50MB
Best Practices
Set clear bot commands for common actions
Use inline keyboards for interactive options
Respond quickly to maintain engagement
Set bot description and about text in BotFather
Use automation rules for handling commands
Monitor bot usage and response times
Troubleshooting
Bot not responding
Bot not responding
- Verify bot token is correct
- Check bot is not blocked or deleted
- Test bot directly in Telegram
- Ensure webhook is set correctly
- Check Chatwoot logs for errors
Messages not syncing
Messages not syncing
- Verify webhook URL is accessible
- Check firewall allows Telegram webhook IPs
- Ensure bot has necessary permissions
- Test webhook with Telegram API test tool
Cannot send media
Cannot send media
- Check file size within limits
- Verify file format is supported
- Ensure file is accessible (not local file path)
- Check bot permissions in group (if in group)
Bot commands not working
Bot commands not working
- Verify commands are set in BotFather
- Check command syntax (must start with /)
- Ensure bot can read messages in group (disable privacy mode)
- Check automation rules are configured correctly
Advanced Configuration
Custom Webhook URL
For self-hosted installations, set custom webhook:Bot Information
Set bot information in BotFather:Telegram API Limits
- Message rate: 30 messages per second
- Group message rate: 20 messages per minute per group
- File size: 50MB per file
- Bot creation: 20 bots per account

