Connect a Telegram group for chat
connect_telegramChats the owner answers arrive in a Telegram group, one topic per conversation. This gives a one-time /link code and the steps for the person to follow in Telegram: a group with Keepp's bot in it, Topics on, the bot an admin, then the code sent in the group. Relay the steps as given. The code works once, for 24 hours, and a new one cancels the last. Call get_chat_settings afterwards to see whether the group is linked.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"business": "<business>"
},
"name": "connect_telegram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| business | Yes | The page handle, as it appears in keepp.link/<handle>. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | For the person, in order. | |
| botUrl | Yes | Opens the bot's add-to-group picker in Telegram. | |
| command | Yes | What the person sends in the group, like "/link ABCD2345". | |
| provider | Yes | ||
| expiresAt | Yes | When the code stops working. It also works only once. | |
| botUsername | Yes | ||
| alreadyLinkedTo | No | The group linked now, which a new link replaces. Null when none is. |