Connect Telegram
Connect a Telegram bot to a brain so messages sent to the bot are captured automatically.
Authentication
x-api-keystring
Your Living Brain API key. Create one from the dashboard; keys are scoped to an organization and carry the role of the member they were issued to.
Path parameters
brainId
Brain id
Headers
x-subject-id
Identifies the end user the request is made on behalf of. Brains are owned by a
subject, so this determines which brains the caller can see.
Request
This endpoint expects an object.
botToken
BotFather bot token to connect to this brain
Response
id
Connection row id
brainId
Owning brain id
botUsername
Bot username (without @)
botFirstName
Display name of the connected Telegram bot.
status
Lifecycle state. Deprecated and archived items are hidden from listings by default.
connectedAt
ISO 8601 timestamp of when the bot was linked.
lastCaptureAt
ISO 8601 timestamp of the most recent message captured via Telegram.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error