# leaveChat

Source: https://core.telegram.org/bots/api#leavechat

[Documentation index](../llms.txt)

Use this method for your bot to leave a group, supergroup or channel. Returns *True* on success.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| chat\_id | Integer or String | Yes | Unique identifier for the target chat or username of the target supergroup or channel in the format `@username`. Channel direct messages chats aren't supported; leave the corresponding channel instead. |
