Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
/ TelePyroBot Public archive

A userbot for Telegram account made using Pyrogram Library and Python

License

Notifications You must be signed in to change notification settings

Divkix/TelePyroBot

Repository files navigation

TelePyroBot 🤖

forthebadge made-with-python ForTheBadge built-with-love
Views

A Telegram UserBot based on Pyrogram

Installing

The Easy Way- Heroku

Deploy

GET STRING SESSION FROM REPL RUN!

Repl.it

Docker way!

Setup config.py file

docker build -t telepyrobot:v2.1 .
docker run -d telepyrobot:v2.1

The Legacy Way - Manual

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

Getting config.py values

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.

Things to Note:

  • Only three of the configuration / environment variables are mandatory.
  • This is because of pyrogram.errors.API_ID_PUBLISHED_FLOOD
  • The Userbot should work without setting the non-mandatory environment variables.
  • Please report any issues to the support group: @Skuzzy xD

Credits, and Special Thanks to

Copyright & License