Skip to main content
This guide connects a deployed agent to Telegram so anyone can message it through a bot. The same pattern works for WhatsApp, Slack, and Discord — only the pairing step differs. Call sdk.channels.link() with the channel name and your agent’s wallet address. The service returns a bot URL.
result.action.type is "redirect" and result.action.url is a t.me/... bot link.

2. Share the bot URL

Send result.action.url to whoever should reach the agent. When they open it and tap Start in Telegram, the channels service binds their Telegram chat to your agent and begins forwarding messages.

3. Check connection status

Verify the route is established:

4. Send a test message

Send a message to the bot in Telegram. The channels service forwards it to your agent, the agent processes it, and the reply is posted back to the Telegram chat automatically. You don’t need to run a stream yourself — the channel handles delivery. To watch what the agent does with the message, listen on the event bus:

5. Verify the agent responded

Check the thread the channel created for the conversation:

6. Disconnect

When you want to stop forwarding, remove the route:
The bot remains on Telegram, but messages no longer reach the agent until you create a new link.

Other platforms

See Channels for platform-specific details.

Next