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-2021.4.15.1.tar.gz
(38.4 kB
view hashes)
Built Distribution
Close
Hashes for py_Ultroid-2021.4.15.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fa1a09c302cb2daf6d3c184941cdea8775315f0bfcb265e3d10263cde10c74c |
|
MD5 | 81e79bf49f420d0f086160641a456900 |
|
BLAKE2b-256 | 50efee3c2eba40c7d133ac27010a6dd907f0bdb086a195e74a8a9a3b09c8ff82 |