Leave a Group
View All Telegram Messaging API APIs →Remove the connected account from a group or channel. Provide the sessionId and the peer; no request body is required. Returns the peer that was left. Use it to programmatically exit communities the account no longer needs to be in.
API Features
One call Leave a group or channel with a single empty POST
Confirmation Returns the peer that was left
Lifecycle control Programmatically exit communities that are no longer relevant
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
POST
/api/project/telegram-messaging/leave-group API Response (JSON)
{} Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Exit a group after a campaign or project ends
- Clean up an account's memberships in bulk
- Remove a monitoring account from a group on completion