Dieser Artikel ist noch nicht auf Deutsch verfügbar – angezeigt wird die Version auf English.
Connect Telegram
Chat with your Agent through your own Telegram bot
How it works
You create a Telegram bot with @BotFather and get its bot token. Then you send that token to your Agent in your one-on-one chat on ClawCreek and ask it to connect Telegram. The Agent connects the bot itself. The channel settings have no form for the token; this is currently the only way to connect.
Once connected, ClawCreek receives the bot's messages through a webhook and your Agent replies as the bot. Connecting clears any messages that were waiting on the bot from before.
Setup steps
Create a bot with @BotFather
In Telegram, search for @BotFather, open the chat and send /newbot. Follow its prompts to choose a display name and a username for the bot.
When it's done, BotFather sends you the bot token. Copy it.
/revoke to @BotFather to get a new one, then send the new token to your Agent as in step 3.(Optional) Get your Telegram user ID
If you also give your Agent your numeric Telegram user ID, it binds you as the owner, so you have owner permissions when you message the bot. To find your ID, message @userinfobot in Telegram.
You can skip this. The bot still replies to everyone; it's just that nobody has owner permissions on Telegram.
Send the token to your Agent
On ClawCreek, open your one-on-one chat with your Agent and send the token, for example:
“Connect Telegram for me. Bot token: <your token>”
To bind yourself as the owner, add your user ID in the same message, for example “My Telegram user ID is <your ID>”. The Agent tells you when the bot is connected.
Check the connection in Channels
On your Agent's chat page: on desktop, open the Settings menu at the top of the right-hand panel and choose Overview. On mobile, tap the ⋮ menu at the top right, choose Brain, then tap Settings and choose Overview. Scroll to the Channels section (or type “telegram” into the Settings search box to jump straight there). The Telegram row shows Active and the bot's @username.
If the row only shows a Connect in chat button, the bot isn't connected. That button takes you back to the chat page, where you can send the token to your Agent again. The status can take a while to update, so check again a little later.
Send a test message
In Telegram, open a chat with your bot and send it a message. Your Agent replies as the bot.
When the bot replies
Private chats: the bot replies to anyone who messages it. Only the owner you bound in step 2 has owner permissions.
Groups: add the bot to a group like any other member. It replies to a text message only when someone @mentions the bot's username, @mentions your Agent's name, or replies to one of the bot's messages. Everything else is quietly saved to the Agent's memory without a reply. In groups, nobody has owner permissions, not even you.
Telegram turns on privacy mode for new bots: in groups, the bot only receives messages that @mention its username or reply to it. To let people wake it with your Agent's name and let it remember the rest of the group's messages, send /setprivacy to @BotFather, pick the bot, and choose Disable.
FAQ
How do I disconnect the bot or switch to a different one?
In the Channels section (see step 4), click ✕ (Disconnect (switch bot)) on the right of the Telegram row and confirm. The current bot stops working, and your chat history is kept. To switch bots, send the new bot's token to your Agent in chat, the same way as step 3.
What does the ↻ button do?
It's Restart: it restarts the Telegram connection with the same bot.
Can one bot serve several ClawCreek Agents?
No. One bot can only serve one Agent. If you connect the same bot to a second Agent, the first Agent's connection stops working. Create a separate bot for each Agent.
I'm the owner, but the bot doesn't treat me as the owner.
Owner permissions apply only in private chats, and only if you gave your Agent your Telegram user ID (step 2). To fix it, send your Agent the bot token again together with your user ID in your private chat on ClawCreek, the same way as step 3. In groups, nobody has owner permissions.
The bot doesn't reply in my group.
In groups, the bot replies only when you @mention its username or your Agent's name, or reply to one of its messages. Other messages are saved to memory without a reply. If @mentioning your Agent's name does nothing, the bot's privacy mode is probably still on; see "When the bot replies" above.
My Agent says the connection failed, or that it can't connect right now.
Check that you copied the whole token (the digits, the colon and everything after it) and that you sent it in your one-on-one chat with your Agent on ClawCreek. If the token is wrong, your Agent tells you the connection failed. If your Agent says it can't connect right now, wait a few minutes and ask it again in a new message.