It emulates the /start command to the bot with an additional parameter for the referral code.
pip install -r requirements.txt
Description for fileds
- BOT_NAME - The public name of the bot without the @ symbol (e.g., example_random_bot)
- COUNT - The quantity of accounts to be used
- REFER_ID - Your referral ID obtained from the bot (e.g., t.me/example_random_bot?start=12345, ONLY set 12345)
- CHANNEL_NAME - The username of the channel that must be joined [OPTIONAL]
- DELAY_MIN - The minimum delay in seconds between each account's operation
- DELAY_MAX - The maximum delay in seconds between each account's operation
Example of .env file
BOT_NAME=my_new_coin_bot
COUNT=5
REFER_ID=111222333
CHANNEL_NAME=my_new_coin_channel
DELAY_MIN = 10
DELAY_MAX = 15
- Go to https://my.telegram.org. Log in to the site and create a new application; it will provide you with your credentials
4. Create a file for your credentials, such as accounts.txt, and input the data in the following format:
Note: The amount of tokens must correspond to the amount you have set in the .env file.
Example
SESSION_NAME:API_ID:API_HASH
MY_ACCOUNT_1:11223344:d54d1702ad0f8326224b817c796763c9
Or if you've got pyrogram string sessions, just pop each one on a new line like this:
Ag1C11H4AJxbIL5Cr4xovee6MlhrE0XYJud9h_w4RbADPko_-BQufNvWzAzci_4_1EEv623CFNTqRhlL_4qnwL_C3SuMRXYgR89LOSjbE8YO8yIiA0Dctyt5BwdinvMFFm6CEqhzhMzFXoqwCjAMCF9BWkUdJ0WqXkUjxkWO68rJXRIDLl2PXqEGOijZRLnVQIf2H8oJAuAe8Wo7nfYFuFQJAJH7CvpFiY2VZWeBVjSrgWspbTY3Kiy5q7EBrkHFeZvF5y5N_fWnkrAAWYmLN2zctOLuRm2SJ2DQ2mzZdYjKs4Dxzu1QeHTnRdnDCgE9SjEp2C3RFioZDy38105ao_da6owAAAAB3o_RZAA
Ag2C21H4AJxbIL5Cr4xovee6MlhrE0XYJud9h_w4RbADPko_-BQufNvWzAzci_4_1EEv623CFNTqRhlL_4qnwL_C3SuMRXYgR89LOSjbE8YO8yIiA0Dctyt5BwdinvMFFm6CEqhzhMzFXoqwCjAMCF9BWkUdJ0WqXkUjxkWO68rJXRIDLl2PXqEGOijZRLnVQIf2H8oJAuAe8Wo7nfYFuFQJAJH7CvpFiY2VZWeBVjSrgWspbTY3Kiy5q7EBrkHFeZvF5y5N_fWnkrAAWYmLN2zctOLuRm2SJ2DQ2mzZdYjKs4Dxzu1QeHTnRdnDCgE9SjEp2C3RFioZDy38105ao_da6owAAAAB3o_RZAA
Ag3C31H4AJxbIL5Cr4xovee6MlhrE0XYJud9h_w4RbADPko_-BQufNvWzAzci_4_1EEv623CFNTqRhlL_4qnwL_C3SuMRXYgR89LOSjbE8YO8yIiA0Dctyt5BwdinvMFFm6CEqhzhMzFXoqwCjAMCF9BWkUdJ0WqXkUjxkWO68rJXRIDLl2PXqEGOijZRLnVQIf2H8oJAuAe8Wo7nfYFuFQJAJH7CvpFiY2VZWeBVjSrgWspbTY3Kiy5q7EBrkHFeZvF5y5N_fWnkrAAWYmLN2zctOLuRm2SJ2DQ2mzZdYjKs4Dxzu1QeHTnRdnDCgE9SjEp2C3RFioZDy38105ao_da6owAAAAB3o_RZAA
NO PROXY (leave file empty)
IP:PORT
IP:PORT:LOGIN:PASSWORD
python bot.py --auth --tokens accounts.txt
python bot.py --run --tokens accounts.txt
or with string session
python bot.py --run --strings --tokens accounts.txt
or with proxy
python bot.py --run --tokens accounts.txt --proxies proxies.txt
If the bot requires joining a channel, you should set up the channel name in the .env file and follow the command below
python bot.py --run --tokens accounts.txt --channel
Note: All files, such as accounts.txt and proxies.txt, must be located in the root of the project folder
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. If the script returns an error, open an issue with the provided error message
All materials are provided for educational purposes only. The author does not bear the responsibility of the consequences of use by other users