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 sends a JoinChannelRequest via Telethon to add the authenticated account to the specified public channel. On success it returns the full channel object for the channel that was just joined.

Endpoint

POST /channels

Authentication

Requires an active Telethon session on the server. Unlike GET /channels, this endpoint always uses the real Telegram client — FakeClient is never used regardless of the API_ID setting.

Query Parameters

channel_name
string
required
The public username of the Telegram channel to join, without the leading @ (e.g. durov, telegram). Must resolve to a valid, accessible public channel.

Request Body

None.

Response

data
Channel
required
The full channel object for the channel that was joined.

Status Codes

StatusDescription
201 CreatedThe authenticated account successfully joined the channel. The full channel object is returned.
400 Bad RequestThe channel username was not found or is invalid. Raised from a ValueError returned by Telethon.
429 Too Many RequestsTelegram’s flood-wait protection was triggered. The detail field contains the number of seconds to wait before retrying.

Examples

curl -X POST 'http://localhost:5004/channels?channel_name=durov'
Telegram enforces strict rate limits on join operations. If you receive a 429 Too Many Requests response, inspect the detail field — it contains the number of seconds you must wait before issuing another join request. Repeated violations can result in longer temporary bans from the Telegram API.

Build docs developers (and LLMs) love