Pluggable Telegram bot and userbot based on Telethon
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Dan Elkouby cc98721120 Improve command support
- Support commands with the bot's username
- Make matching case-insensitive by default
- Merge cmd and admin_cmd for better maintainability
4 years ago
botplugins Port tl plugin to bots 4 years ago
stdplugins Port tl plugin to bots 4 years ago
uniborg Improve command support 4 years ago
.gitignore add *.session-journal to `.gitignore` 6 years ago
LICENSE Initial commit 6 years ago Don't allow unloading _core 6 years ago
requirements-stdborg.txt create stdborg requirements file 6 years ago
requirements.txt Fix #13 6 years ago Use connection_retries 6 years ago Add stdbot, to showcase plugins that work from a bot account 4 years ago


Pluggable asyncio Telegram userbot based on Telethon.


Simply clone the repository and run the main file:

git clone
cd uniborg


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/
from telethon import events

async def handler(event):
    await event.reply('hey')


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


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