К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/mcp-client-config.mdиндекс документации — /llms.txt

MCP: client-config

Обновлено

Определения инструментов. Обновляйте tools/list после изменения прав. required_scopes: ALL.

connect_channel

Connect an additional customer channel using its credentials. Never echo credentials in results. A failed status carries one reason: credentials_invalid, registration_failed, reconciliation_required or channel_not_available.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

create_menu_button

Create menu button with exactly one URL, Mini App URL or callback action; returns its id.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

create_menu_group

Create menu group; returns its id.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

delete_menu_button

Delete menu button by its id.

Scopes (ALL): ["client-config:write"]. Risk: "destructive".

Вход, результат и права

delete_menu_group

Delete menu group by its id.

Scopes (ALL): ["client-config:write"]. Risk: "destructive".

Вход, результат и права

disconnect_channel

Take a connected MAX or VK channel off the current business: the callback is removed and the channel stops receiving. status not_connected means the channel was not connected and nothing changed; the call is safe to repeat.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

get_bot_profile

Read the public profile of the business's own Telegram bot as users see it: `name`, `about` (the short line in the bot profile) and `description` (the text of the «What can this bot do?» block on the start screen), with their limits. `language_code` (`ru`, `en` or `default`) picks the localization; omitted = the business language. `default` is the text everyone sees who has no dedicated one. The platform never changes these fields by itself. The start-screen picture or GIF and the current profile photo cannot be read; `botfather_only` says what is changed only in @BotFather. If Telegram no longer accepts the bot's token (`BOT_TOKEN_REVOKED`), the bot must be connected again. 0-cost read.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

get_client_config

Read the tenant client-level settings: default operator language (ru/en), timezone, reporting currency, revenue-attribution window + dialog auto-close days, LLM-arbiter toggle, operator price-override flag, cookie-consent opt-in mode of the tenant sites, the master switch of all buyer-facing AI agents, per-user AI-token spend caps, the two referral goals (invitee / inviter), the welcome text of a bare /start (Telegram-HTML, null while the platform greeting is used), the commerce timings in minutes (payment-link lifetime, abandoned checkout and cart nudge delays, unpaid-order nudge lead, quiet window after a purchase), plus read-only token balances (monthly + package). Needs the settings right. 0-cost read.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

get_data_dictionary

Describe the available logical CRM tables, their tenant-scoped record handles, and their relationships. Behavioural history is available only through the analytics agent.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

get_menu_button

Read menu button by its id.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

get_menu_group

Read menu group by its id.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

Get the checkout link for the canonical Starter platform tariff. This only returns a link; it never purchases, charges, or changes the plan.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

get_token_billing

Read this business’s AI token billing: current-period limit and remaining tokens, plus every purchased token package with its remaining balance and expiry. Read-only.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

Get the checkout link for an additional AI token package. This only returns a link; it never purchases, charges, or grants tokens.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

list_menu_buttons

List menu buttons for the active business with their id.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

list_menu_groups

List menu groups for the active business with their id.

Scopes (ALL): ["client-config:read"]. Risk: "read".

Вход, результат и права

onboarding_connect_channel

Connect an additional customer channel using its credentials. Never echo credentials in results. A failed status carries one reason: credentials_invalid, registration_failed, reconciliation_required or channel_not_available.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

update_bot_profile

Change the public profile of the business's own Telegram bot (partial: send only what changes). `name` 1-64 characters, `about` up to 120 (the short line in the bot profile), `description` up to 512 (the «What can this bot do?» block); an empty `about` or `description` clears it. `language_code` (`ru`, `en`, `default`) picks the localization to write; omitted = the business language; `default` is the text for everyone with no dedicated one, so write it too if the audience is mixed. The profile photo: `profile_photo_media_ref` (a JPEG or PNG, or an MP4 for an animated photo, up to 10 MB, uploaded with media_request_upload and finalized with media_finalize) or `remove_profile_photo: true`. The start-screen picture or GIF has no Bot API method: passing `start_screen_media_ref` changes nothing and returns it in `refused` with the @BotFather instruction. Telegram limits how often a name can change; if it refuses a field, the error names it and the fields already changed. Returns `bot_username`, `applied` and the profile read back from Telegram; if the read-back fails, `profile_read_failed: true` and `profile: null` — the writes in `applied` still landed, call `get_bot_profile` to see the result. `BOT_TOKEN_REVOKED` means the bot's token was revoked: connect the bot again.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

update_client_config

Update the tenant client-level settings (partial patch — send only the fields you change; pass null to clear a token cap or a referral goal; pass welcome as Telegram-HTML for your own /start greeting, null or an empty string for the platform greeting; a commerce timing is written inside its platform range, and the unpaid-order lead stays below the payment-link lifetime). Idempotent. Needs the settings right. Token BALANCES are read-only and cannot be set here. Returns the full updated config.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

update_menu_button

Update menu button with its updated_at version as if_match.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права

update_menu_group

Update menu group with its updated_at version as if_match.

Scopes (ALL): ["client-config:write"]. Risk: "write".

Вход, результат и права