Connect Telegram
Connect your agent to Telegram so users can interact with it via a Telegram bot.
Prerequisites
Section titled “Prerequisites”- A Wireclaw agent (create one if you haven’t)
- A Telegram account
-
Create a bot with BotFather
Open @BotFather in Telegram and send
/newbot.BotFather will ask for:
- Bot name: Display name (e.g., “My Research Bot”)
- Bot username: Must end in
bot(e.g.,my_research_bot)
BotFather responds with a bot token like:
123456789:ABCdefGHIjklMNOpqrSTUvwxYZCopy this token.
-
Add the token in Wireclaw
Go to Dashboard → Your Agent → Channels → Add Telegram.
Paste the bot token and click Connect.
-
Verify the connection
A green checkmark next to the Telegram channel means it’s connected and ready.
-
Set allowed users (optional)
Restrict who can talk to your bot:
[channels.telegram]token = "123456789:ABCdefGHIjklMNOpqrSTUvwxYZ"allowed_users = ["@alice", "@bob"]If
allowed_usersis omitted, anyone can message your bot.
Test it
Section titled “Test it”Open your bot in Telegram (search for @your_bot_username) and send a message. The agent should respond within a few seconds.
Troubleshooting
Section titled “Troubleshooting”| Issue | Solution |
|---|---|
| Bot doesn’t respond | Check agent status is “Running” in Dashboard |
| ”Unauthorized” error | Regenerate the bot token in BotFather (/revoke) and update in Wireclaw |
| Bot responds slowly | Check your model choice — faster models like gemini-2.5-flash have lower latency |
Next steps
Section titled “Next steps”- Connect Discord — add a second channel
- Agent Config reference — customize your agent
- Built-in tools — add more capabilities