Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/OPENNOVA2026/telegram-connector/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint iterates over all dialogs for the authenticated Telegram account and returns every entry that is a channel. Each item in the response is a full channel object derived from Telethon’s Channel constructor.

Endpoint

GET /channels

Authentication

Requires an active Telethon session on the server. When API_ID is set to 0 in the server configuration, the endpoint automatically falls back to FakeClient and returns synthetic data instead of making real Telegram API calls.

Request

No query parameters or request body.

Response

data
Channel[]
required
Array of channel objects representing all channels found in the authenticated account’s dialogs.

Status Codes

StatusDescription
200 OKList of channels returned successfully.

Example

curl http://localhost:5004/channels
When API_ID is 0, this endpoint returns synthetic data from FakeClient — 10 fake channels named “Channel 1” through “Channel 10” — without making any real Telegram API calls. Set a valid API_ID in your environment to retrieve live data.

Build docs developers (and LLMs) love