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

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

MCP: public-channel

Обновлено

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

get_public_channels

List the public channel of this business on each messenger (Telegram, MAX, VK) and check it: for each bound channel the answer says whether the bot reads it right now (`ready`) and, when not, why (`reason`). A lead magnet asks the buyer to join this channel, and a site access rule with the condition `channel` opens pages to its members on the messenger the visitor signed in with. A messenger with no bound channel is absent from the list.

Scopes (ALL): ["public-channel:read"]. Risk: "read".

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

remove_public_channel

Unbind the public channel of this business on one messenger. Access rules that require the channel are kept but admit nobody on that messenger until a channel is bound again; lead magnets there stop asking for a subscription. The owner and the Settings group are notified. `not_connected`: nothing was bound there.

Scopes (ALL): ["public-channel:write"]. Risk: "destructive".

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

set_public_channel

Bind the public channel of this business on one messenger, replacing the one bound there before. `channel_ref` is the numeric id of the channel in that messenger or, for Telegram only, the @handle of a public channel (resolved once to the id; only the id is stored). First add the business bot of that messenger to the channel as an administrator; the platform checks it before anything changes. PUBLIC_CHANNEL_BOT_NOT_ADMIN: the bot is not an administrator there or no such channel exists (the id or @handle names none; Telegram answers both the same way), the previous binding stays. `outcome: unavailable`: the messenger did not answer, nothing changed, repeat the call. The owner and the Settings group are notified of every change. Access rules that require the channel start admitting its members on that messenger.

Scopes (ALL): ["public-channel:write"]. Risk: "write".

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