Actions10
- Message Actions
- Chat Actions
- File Actions
Chat → Leave
AI-generatedSummary
Leave a Telegram chat
Inputs
- botToken — Bot token; can be provided via input or expression {{ $json.access_token }}.
- chatId (required) — ID of the chat to leave.
Output shape
object
The API response from
leaveChat; typically an empty object or acknowledgment, but may contain error details if the call fails.
Examples
Example 1: Leave a group chat
Bot Token from input, Chat ID set to 123456789, Operation set to 'leave'