Skip to content
/ uniborg Public

Pluggable Telegram bot and userbot based on Telethon

License

Notifications You must be signed in to change notification settings

udf/uniborg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

baa72da · May 20, 2024
Nov 4, 2020
May 8, 2024
May 20, 2024
Mar 8, 2024
Aug 7, 2020
Apr 6, 2018
Nov 9, 2018
Dec 26, 2018
Mar 8, 2024
Aug 11, 2020
Mar 20, 2024
Aug 2, 2020

Repository files navigation

uniborg

Pluggable asyncio Telegram userbot based on Telethon.

installing

Simply clone the repository and run the main file:

git clone https://github.com/udf/uniborg.git
cd uniborg
python stdborg.py

design

The modular design of the project enhances your Telegram experience through plugins which you can enable or disable on demand.

Each plugin gets the borg, logger and storage magical variables to ease their use. Thus creating a plugin as easy as adding a new file under the plugin directory to do the job:

# stdplugins/myplugin.py
from telethon import events

@borg.on(events.NewMessage(pattern='hi'))
async def handler(event):
    await event.reply('hey')

internals

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

learning

Check out the already-mentioned plugins directory to learn how to write your own, and consider reading Telethon's documentation.

About

Pluggable Telegram bot and userbot based on Telethon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages