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 LeaveChannelRequest via Telethon to remove the authenticated account from the specified channel. The operation is fire-and-forget — no channel data is returned on success.

Endpoint

DELETE /channels

Authentication

Requires an active Telethon session on the server.

Query Parameters

channel_name
string
required
The username of the Telegram channel to leave, without the leading @ (e.g. durov, telegram).

Request Body

None.

Response

No response body is returned on success.

Status Codes

StatusDescription
204 No ContentThe authenticated account successfully left the channel.

Example

curl -X DELETE 'http://localhost:5004/channels?channel_name=durov'
No confirmation body is returned — a 204 No Content response is the sole indicator that the operation completed successfully. If the provided channel username does not exist or is otherwise unresolvable, Telethon may raise an error internally. The current implementation does not explicitly catch errors from LeaveChannelRequest, so unexpected failures may surface as unhandled 500 responses.

Build docs developers (and LLMs) love