A Secure and Powerful Python-Telethon Based Library For Ultroid Userbot.
Project description
py-Ultroid Library
A stable userbot base library, based on Telethon.
Installation
pip install py-Ultroid
Usage
=> Create folders named plugins
, addons
, assistant
and resources
.
=> Add your plugins in the plugins
folder and others accordingly.
=> Create a .env
file with API_ID
, API_HASH
, SESSION
,
BOT_TOKEN
, BOT_USERNAME
, REDIS_URI
, REDIS_PASSWORD
&
LOG_CHANNEL
as mandatory environment variables. Check
.env.sample
for more details.
=> Run python -m pyUltroid
to start the bot.
Creating plugins
To work everywhere
@ultroid_cmd(
pattern="start",
)
async def _(e):
await eor(e, "Ultroid Started")
To work only in groups
@ultroid_cmd(
pattern="start",
groups_only=True,
)
async def _(e):
await eor(e, "Ultroid Started")
Assistant Plugins 👇
@asst_cmd("start")
async def _(e):
await e.reply("Ultroid Started")
Made with 💕 by @TeamUltroid.
Credits
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-Ultroid-47.9b0.tar.gz
(64.6 kB
view hashes)
Built Distribution
Close
Hashes for py_Ultroid-47.9b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ace27575525ded2382fbca0600b2e5ac6e5ea86c753c0c0f7d2eafd9eb32de18 |
|
MD5 | d5ee5265c5d5a0a4571c36e7e8355a3b |
|
BLAKE2b-256 | 8f8415fe80b17051b789993682dd775648d5a4acacd8b11e38f0e2b8db7f86ec |