UniBorg

by rihan1001

GitHub Readme.md

uniborg

Pluggable asyncio Telegram userbot based on Telethon.

installing

The Easy Way

Deploy

The Legacy Way

Simply clone the repository and run the main file:

git clone https://github.com/uniborg/uniborg.git
cd uniborg
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
# <Create config.py with variables as given below>
python3 -m stdborg

An example config.py file could be:

Not All of the variables are mandatory

The UniBorg should work by setting only the first three variables

from sample_config import Config

class Development(Config):
  APP_ID = 6
  API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
  HU_STRING_SESSION = ""
  OPEN_WEATHER_MAP_APPID = ""
  SCREEN_SHOT_LAYER_ACCESS_KEY = ""
  # Send .get_id in any private group to fill this value.
  PRIVATE_GROUP_BOT_API_ID = -100
  # Send .get_id in any broadcast channel to fill this value.
  PRIVATE_CHANNEL_BOT_API_ID = -100
  TMP_DOWNLOAD_DIRECTORY = "./DOWNLOADS/"
  IBM_WATSON_CRED_USERNAME = ""
  IBM_WATSON_CRED_PASSWORD = ""
  HASH_TO_TORRENT_API = None
  TELEGRAPH_SHORT_NAME = "UniBorg"
  OCR_SPACE_API_KEY = ""
  G_BAN_LOGGER_GROUP = -100
  TG_GLOBAL_ALBUM_LIMIT = 3
  TG_BOT_TOKEN_BF_HER = ""
  TG_BOT_USER_NAME_BF_HER = ""
  UB_BLACK_LIST_CHAT = []
  # chat ids or usernames, it is recommended to use chat ids,
  # providing usernames means an additional overhead for the user
  CHATS_TO_MONITOR_FOR_ANTI_FLOOD = []
  # specify LOAD and NO_LOAD
  LOAD = []
  NO_LOAD = []

internals

The core features offered by the custom TelegramClient live under the uniborg/ directory, with some utilities, enhancements and the _core plugin.