A userbot for Telegram account made using Pyrogram Library and Python
A Telegram UserBot based on Pyrogram
Setup config.py file
docker build -t telepyrobot:v2.1 .
docker run -d telepyrobot:v2.1
Simply clone the repository and run the main file:
git clone https://github.com/SkuzzyxD/TelePyroBot.git
cd TelePyroBot
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 -m telepyrobot
Get String Session
git clone https://github.com/SkuzzyxD/TelePyroBot.git
cd TelePyroBot
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r string-requirements.txt
python3 GenerateStringSession.py
An example config.py
file could be:
Not All of the variables are mandatory
The UserBot should work by setting only these variables
from telepyrobot.sample_config import Config
class Development(Config):
APP_ID = 6
API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
STRING_SESSION = "" # Get it from Repl.run or manually by GenerateStringSession.py
STRING_SESSION
can be generated by running python3 GenerateStringSession.py
in any GNU/Linux system, with Python3 and the requirements () installed.
pyrogram.errors.API_ID_PUBLISHED_FLOOD
APP_ID
: You can get this value from https://my.telegram.org
API_HASH
: You can get this value from https://my.telegram.org
STRING_SESSION
: Get it from Repl.run (Click here)