A Telegram Userbot based on Pyrogram
Simply clone the repository and run the main file:
git clone https://github.com/SpEcHiDe/PyroGramUserBot.git
cd PyroGramUserBot
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
# <Create config.py with variables as given below>
python3 -m pyrobot
An example config.py
file could be:
Not All of the variables are mandatory
The UserBot should work by setting only these variables
from pyrobot.sample_config import Config
class Development(Config):
APP_ID = 6
API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
HU_STRING_SESSION = ""
HU_STRING_SESSION
can be generated by running python3 GenerateStringSession.py
in any GNU/Linux system, with Python3 and the requirements installed.
- Only three of the configuration / environment variables are mandatory.
- This is because of
pyrogram.errors.API_ID_PUBLISHED_FLOOD
APP_ID
: You can get this value from https://my.telegram.orgAPI_HASH
: You can get this value from https://my.telegram.org
- The userbot should work without setting the non-mandatory environment variables.
- Please report any issues to the support group: @SpEcHlDe
- Dan Tès for his Pyrogram Library
- Colin Shark for his PyroBot