Overview
Channels allow your agent to communicate through various platforms. BabyClaw currently supports Telegram, with more channels coming soon.Channel Configuration
Channels are configured in thechannels section of your config file:
Telegram
Telegram bot configuration.
Bot token from @BotFather. Must not be empty or
"REPLACE_ME".Creating a Telegram Bot
- Open Telegram and search for @BotFather
- Send
/newbotto start the creation process - Choose a name for your bot (e.g., “My BabyClaw Bot”)
- Choose a username ending in “bot” (e.g.,
mybabyclaw_bot) - Copy the bot token - it looks like
1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
Configuration Example
Starting Your Bot
After configuring the bot token:- Start BabyClaw - it will automatically connect to Telegram
- Find your bot in Telegram by searching for its username
- Send
/startto begin chatting
Bot Commands
Your Telegram bot automatically supports:/start- Initialize conversation with the bot/help- Show available commands- Regular messages for natural conversation
Features
Text Messages- Send and receive text messages
- Markdown formatting support
- Multi-line messages
- Send and receive images
- Image analysis with vision models
- Document attachments
- Real-time typing indicators
- Message reactions
- Reply threading
- Add bot to group chats
- Responds when mentioned
- Configurable participation level
In group chats, the bot follows guidelines from
SOUL.md and AGENTS.md about when to speak vs. stay silent.Privacy and Security
Bot Security:- Keep your bot token secret
- Never commit it to version control
- Regenerate token if compromised (via @BotFather)
- Bot can only see messages sent to it or where it’s mentioned
- Private chats are 1-on-1 between user and bot
- Group chat behavior follows privacy boundaries
Customizing Bot Behavior
Control how your bot behaves in Telegram: In SOUL.md:- No markdown tables (use bullet lists)
- Wrap multiple links in
<>to suppress embeds:<https://example.com> - Use emoji reactions for lightweight acknowledgment
Troubleshooting
Bot doesn’t respond:- Verify bot token is correct
- Check BabyClaw logs for connection errors
- Ensure bot isn’t blocked by user
- Try
/startcommand to initialize
- Check AI provider API status
- Verify network connectivity
- Consider using a faster model
- Check bot privacy settings in @BotFather
- Ensure group allows bots
- Verify bot has necessary permissions
- Ensure
botTokenis set and not"REPLACE_ME" - Verify JSON syntax is correct
Advanced Configuration
For more control over bot behavior:default- Standard threadingreply-chain- Follow conversation threads more closely
Bot Profile Setup
Customize your bot’s profile via @BotFather:- Send
/setdescription- Set bot description - Send
/setabouttext- Set about text - Send
/setuserpic- Upload profile picture - Send
/setcommands- Configure command list
Rate Limits
Telegram enforces rate limits:- Messages: ~30 messages/second to different users
- Group messages: ~20 messages/minute per group
- Bulk messages: Lower limits for broadcasts
Legacy Configuration
Older versions used a different structure:channels format is recommended.
Future Channels
Planned channel support:- WhatsApp (via QR code linking)
- Discord
- Slack
- SMS
- Web interface
Best Practices
- Secure your tokens - Never expose bot tokens publicly
- Set bot profile - Add description and profile picture
- Configure commands - Help users discover bot features
- Test in private - Test bot behavior before adding to groups
- Monitor logs - Watch for errors or unexpected behavior
- Customize behavior - Use SOUL.md to define channel-specific rules