Disconnect / Log Out a Session

View All Telegram Messaging API APIs →

Disconnect a session. By default it only drops the live connection while keeping the stored login, so the account can be restored later. Pass logout=true to also log out of Telegram remotely and delete the stored login — after which the account must log in again with a code or QR scan.

API Features

Graceful disconnect Drops the connection but preserves the login for a later restore
Full logout option logout=true logs out of Telegram remotely and wipes the stored login
Lifecycle control Programmatically retire sessions you no longer need

Live API Demo

DELETE /api/project/telegram-messaging/disconnect-session

API Response (JSON)

{}
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

View Subscription Plans →