Connect Telegram

Connect a managed Telegram bot to this app.

We verify the BotFather token (getMe), store it + a generated inbound webhook secret in Vault, create a telegram channel, and register Telegram’s webhook to our managed inbound URL. Returns the channel + bot username. The raw token is never stored in the DB or echoed back.

Authentication

AuthorizationBearer

LoreOS API key, sent as Authorization: Bearer <key>.

Path parameters

app_idstringRequired

Request

This endpoint expects an object.
bot_tokenstringRequired>=1 character
routing_modeenumOptionalDefaults to single_character
default_character_idstring or nullOptional

Character SLUG (e.g. ‘dbz-goku’), NOT a UUID — the character this bot replies as in single_character routing. Required for single_character mode.

Response

Successful Response

Errors

422
Unprocessable Entity Error