This Python script automatically mutes notifications for all channels in your Telegram account. It is built using the powerful Telethon library.
π Features
- Automatically mute notifications for all joined Telegram channels and supergroups.
- Fast, efficient, and easy to use.
- Fully open-source and customizable to fit your needs.
Purpose: This code is designed to automatically mute notifications for all Telegram channels and supergroups, so you don't have to disable them one by one if you are in too many channels. It saves time and effort, especially for users overwhelmed by constant notifications.
π Requirements
- Python 3.8 or higher
- Telethon library
π¦ Installation
First, clone the repository or download the script.
To install the required dependencies, run:
pip install telethonπ Setup
Before running the script, you need to provide:
- api_id
- api_hash
- phone_number
You can obtain your api_id and api_hash from https://my.telegram.org under the API Development Tools section.
βοΈ Usage
Run the script using:
python main.py- On the first run, a verification code will be sent to your Telegram account to confirm your login.
- After login, the script will automatically mute notifications for all channels and supergroups you are a member of.
- Channels or groups you don't have access to (forbidden) will be skipped automatically.
π Project Structure
telegram-channel-muter-bot/ β βββ main.py # Main Python script βββ requirements.txt # List of required Python packages βββ README.md # Project documentation βββ LICENSE # License file (MIT)
π License
This project is licensed under the MIT License. See the LICENSE file for more details.
π¬ Contributing
Contributions, issues, and feature requests are welcome!
Feel free to open a pull request or submit an issue to help improve the project.