A Secure and Powerful Python-Telethon Based Library For Lion-X Userbot.
Project description
py-Lion Library
A stable userbot base library, based on Telethon.
Installation
pip install py-Lion
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 pyLion
to start the bot.
Creating plugins
To work everywhere
@Lion_cmd(
pattern="start",
)
async def _(e):
await eor(e, "Lion Started")
To work only in groups
@Lion_cmd(
pattern="start",
groups_only=True,
)
async def _(e):
await eor(e, "Lion Started")
Assistant Plugins 👇
@asst_cmd("start")
async def _(e):
await e.reply("Lion Started")
Made with 💕 by @TeamLion.
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
File details
Details for the file py-Lion-1.0.0.tar.gz
.
File metadata
- Download URL: py-Lion-1.0.0.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81af07ae736a6428bc37707ba1c496476e006465bf06b1561d57bdde7983cc1b |
|
MD5 | 8a569fe94d1aab8fc6fb8f9aeda1aab6 |
|
BLAKE2b-256 | b7c361fb22b451b706beb7f18a183bf5381f7aa4db5f5a2d36dfd6e27fed76cb |