Leave all groups and channels in Telegram
Make sure you have the telethon library installed. You can install it using pip:
bash :
~> pip install telethon
✅YOUR_API_ID
✅YOUR_API_HASH
✅+YOUR_PHONE_NUMBER
with your actual Telegram API credentials and phone number.
bash :
~> python leave All.py
API Credentials:
Obtain your API ID and API Hash from my.telegram.org.
Session File:
The script creates a session_name.session file to store your login session. Keep this file secure.
Permissions:
If you’re an admin in a group, you may need to resign as admin before leaving.
Use with Caution:
This script leaves all groups and channels. Use it carefully.