This script helps you automatically add members to your Telegram channel.
- Python 3.7 or higher
- Telegram account with admin privileges in the target channel
- Telegram API credentials (API_ID and API_HASH)
-
Install the required dependencies:
pip install -r requirements.txt
-
Get your Telegram API credentials:
- Go to https://my.telegram.org/auth
- Log in with your phone number
- Go to "API development tools"
- Create a new application
- Copy the API_ID and API_HASH
-
Configure the
.env
file:- Copy the
.env
file and rename it to.env
- Fill in your API_ID, API_HASH, phone number, and channel username
- Copy the
- Open
telegram_member_adder.py
- In the
user_ids
list, add the Telegram user IDs you want to add to your channel - Run the script:
python telegram_member_adder.py
- The script includes delays to avoid rate limiting
- Make sure you have admin privileges in the target channel
- User IDs must be valid and users must not have privacy settings that prevent them from being added to channels
- The script will show a summary of successful and failed additions
If you encounter any issues:
- Make sure your API credentials are correct
- Verify that you have admin privileges in the channel
- Check that the user IDs are valid
- Ensure your phone number is in the correct format (+countrycode)