Start agent account Telegram bot creation
stack_start_account_telegramStart giving the agent account its own Telegram bot without BotFather or a pasted token. Returns create_url, a link the account's OWNER opens in Telegram: they see a window to create the bot (its name and @username are pre-filled and can be changed in the name, but the @username must stay as suggested) and confirm it there. Only that confirmation creates the bot: STACK's own Telegram bot receives the new bot and its token, stores the token sealed like any pasted one and sets its webhook, and nothing passes through this conversation. The link is single-use and lasts 10 minutes (expires_at); asking again replaces it. Tell the owner to open the link; then read the bot with stack_get_account_telegram (not found until they have confirmed). suggested_name is only a suggestion for the bot's display name. A conflict error when the agent already has a bot; NOT_CONFIGURED when this deployment has no Telegram manager bot, in which case the owner connects a bot with the token connect link (stack_create_connect_link, connect kind telegram_bot). Operator only (owner or admin); an agent session is refused.
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": {
"account_id": "<account_id>"
},
"name": "stack_start_account_telegram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Agent account id (acct_*) | |
| suggested_name | No |