https://github.com/prince-mendiratta/mehuniborg
https://github.com/prince-mendiratta/mehuniborg
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prince-mendiratta/mehuniborg
- Owner: Prince-Mendiratta
- License: mpl-2.0
- Created: 2020-01-15T14:08:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T09:13:09.000Z (almost 6 years ago)
- Last Synced: 2025-01-26T12:41:23.493Z (9 months ago)
- Size: 1.07 MB
- Stars: 1
- Watchers: 1
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uniborg
Join our [Official Telegram Channel](https://t.me/DraXNetwork)
Pluggable [``asyncio``](https://docs.python.org/3/library/asyncio.html)
[Telegram](https://telegram.org) userbot based on
[Telethon](https://github.com/LonamiWebs/Telethon).
## installing
#### The Easy Way
[](https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2FDc5000%2FMehUniBorg&template=https%3A%2F%2Fgithub.com%2FDc5000%2FMehUniBorg)
#### The Legacy Way
Simply clone the repository and run the main file:
```sh
git clone https://github.com/uniborg/uniborg.git
cd uniborg
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
#
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 two variables__
```python3
from sample_config import Config
class Development(Config):
APP_ID = 6
API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
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/`](https://github.com/SpEcHiDe/uniborg/tree/master/uniborg)
directory, with some utilities, enhancements, the `_core` plugin, and the `_inline_bot` plugin.