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

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

removePublicChannel

Обновлено

DELETE /api/v1/tools/public-channels/{channel}

Unbind the public channel of one messenger

Авторизация и права

Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.

ПолеЗначение
security.0.hubApiKey[]
security.1.hubBearer[]
securitySchemes.hubApiKey.in"header"
securitySchemes.hubApiKey.name"X-Api-Key"
securitySchemes.hubApiKey.type"apiKey"
securitySchemes.hubBearer.scheme"bearer"
securitySchemes.hubBearer.type"http"
x-required-scopes["public-channel:write"]

Параметры запроса

ПолеЗначение
0.in"path"
0.name"channel"
0.requiredtrue
0.schema0.schema

Тело запроса

ПолеЗначение
Тело запросаnull

Ответы

ПолеЗначение
200.content.application/json.schemaPublicChannelRemoveResult
200.description"Unbound or nothing to unbind"

Ошибки

ПолеЗначение
400.content.application/problem+json.schemaProblemDetails
400.description"VALIDATION_ERROR: unknown messenger"
401.content.application/problem+json.schemaProblemDetails
401.description"INVALID_API_KEY"
403.content.application/problem+json.schemaProblemDetails
403.description"INSUFFICIENT_SCOPE: public-channel:* (a member needs the settings permission)"
429.content.application/problem+json.schemaProblemDetails
429.description"RATE_LIMIT_EXCEEDED or RATE_LIMIT_UNAVAILABLE"

Дополнительные условия

ПолеЗначение
description"Access rules that require the channel are kept and admit nobody on that messenger until a channel is bound again. `not_connected` — nothing was bound."
operationId"removePublicChannel"
summary"Unbind the public channel of one messenger"
tags["public-channels"]