MINARA

Resolve a messaging chat id

POST /v1/gateway/providers/:id/resolve-chat-id — Look up the chat id a Telegram bot should send to. An optional `botToken` in the JSON request body is used for this look

POST /v1/gateway/providers/:id/resolve-chat-id

Look up the chat id a Telegram bot should send to. An optional botToken in the JSON request body is used for this lookup only and is never persisted; when omitted, the gateway uses the saved token. Telegram only; any other provider id returns 404. Reports the current state and returns rather than blocking, so the caller polls: found carries the id, awaiting_start means the user has not messaged the bot yet, conflict means the running daemon owns Telegram's getUpdates (keep polling — a message the user sends reaches the resolver through the daemon), invalid_token means the supplied or saved token is unusable.

MethodPOST
Path/v1/gateway/providers/:id/resolve-chat-id
AuthAuthorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set
Categorygateway

Request body

{ "botToken": "123456789:AAH..." }

Response body

{ "status": "found", "chatId": "42", "username": "my_bot" }

On this page