forked from J-Rios/TLG_JoinCaptchaBot
-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
v1nc edited this page May 21, 2020
·
4 revisions
Use Python 3 to install and run the Bot, Python 2 support could be broken.
- Install Pillow prerequisites:
apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
- Get the project and install my requirements:
git clone --recurse-submodules https://github.com/v1nc/butter_bot/
pip install -r butter_bot/requirements.txt
- Go to project sources and give execution permission to usage scripts:
cd butter_bot/sources
chmod +x run status kill
- Copy
secrets.example.py
tosecrets.py
and specify Telegram Bot account Token (get it from @BotFather) insecrets.py
:
Change 'TOKEN' : 'XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
-
Disable
privacy mode
via @BotFather: select bot-> bot settings -> group privacy -> turn off -
Edit
OWNER
andOWNER_NAME
to match your account details! -
I need to use telethon if you want to use full log protection. Checking validity of invite links is only possible via telegrams user API. Fill
API_ID
andAPI_HASH
from my.telegram.org and yourAPI_NAME
(display name) intosecrets.py
. Rungenerate_session.py
one time to generate a session.
To ease usage, a run, status and kill scripts has been provided.
- Launch the Bot:
./run
- Check if the script is running:
./status
- Stop the Bot:
./kill