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

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

resumeBotConnection

Обновлено

POST /api/v1/tools/onboarding/bot-connection/resume

resumeBotConnection

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

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["onboarding:write"]

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

ПолеЗначение
0.description"Canonical global response cache requires a key for a nonempty body; journey commands, direct bot connection, retry, tax, provider and billing cancellation also enforce it in the actual controller. Bot connection recovery uses its durable tenant reservation and accepts an empty body without a key."
0.in"header"
0.name"Idempotency-Key"
0.requiredfalse
0.schema0.schema

Тело запроса

ПолеЗначение
content.application/json.schemacontent.application/json.schema
requiredtrue

Ответы

ПолеЗначение
201.content.application/json.schemaOnboardingBotConnectionResponse
201.description"Onboarding result and next action."

Ошибки

ПолеЗначение
400.content.application/problem+json.schemaProblemDetails
400.description"Invalid input or missing idempotency key."
401.content.application/problem+json.schemaProblemDetails
401.description"Authentication required."
403.content.application/problem+json.schemaProblemDetails
403.description"Operation is not permitted."
409.content.application/problem+json.schemaProblemDetails
409.description"BOT_SETTINGS_INCOMPLETE: the bot lacks settings the platform needs; details.missing names them (can_join_groups, has_main_web_app, can_manage_bots). The main Mini App URL is the tenant Mini App origin plus /miniapp, as POST /api/v1/tools/onboarding/mini-app-origin returns for channel telegram. The connection stays reserved: switch them on in @BotFather and call bot-connection/resume without the token. Other 409 codes refuse the connection itself."

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

ПолеЗначение
operationId"resumeBotConnection"
tags["onboarding"]
x-idempotency"http-cache"