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

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

MCP: topics

Обновлено

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

create_forum_topic

Create an arbitrary operator forum topic in one tenant supergroup. Returns the topic with its `id`.

Scopes (ALL): ["topics:write"]. Risk: "write".

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

delete_forum_topic_message

Delete a message in an arbitrary operator forum topic. A deleted topic returns TOPIC_DELETED_IN_MESSENGER.

Scopes (ALL): ["topics:write"]. Risk: "destructive".

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

edit_forum_topic_message

Edit text, caption, or buttons of a message in an arbitrary operator forum topic. A deleted topic returns TOPIC_DELETED_IN_MESSENGER.

Scopes (ALL): ["topics:write"]. Risk: "write".

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

list_forum_topics

List the current tenant’s arbitrary operator forum topics. Each topic carries its `id` (pass it as `topic_id`), supergroup_kind, title and is_active.

Scopes (ALL): ["topics:read"]. Risk: "read".

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

read_forum_topic_messages

Read the conversation of an arbitrary operator forum topic, newest first: what the owner and the operators wrote there and what was sent with send_to_forum_topic. Each message carries its author (owner, operator or assistant — a send through this API), text or caption (attachments themselves are not returned), an edit flag (is_edited), the time (sent_at), and `message_id` for edit_forum_topic_message / delete_forum_topic_message. Pass `next_cursor` back as `cursor` for older messages; `next_cursor: null` means the start of the topic.

Scopes (ALL): ["topics:read"]. Risk: "read".

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

send_to_forum_topic

Send text or one attachment (maximum 50 MiB) to an arbitrary operator forum topic. Uses a service bot. A topic deleted in Telegram returns TOPIC_DELETED_IN_MESSENGER with its `topic_id`. A delivered send returns its `message_id`. `confirmed: false` in the answer means the wait for Telegram ran out and the message may still arrive: do not send the same text again as a new call; repeat with the same `idempotency_key` to get the outcome of the first send. Without `idempotency_key` every call posts a new message.

Scopes (ALL): ["topics:write"]. Risk: "write".

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