A Secure and Powerful Python-Telethon Based Library For Ayra Userbot.
Project description
py-Ayra Library
Core library of The Ayra, a python based telegram userbot.
Installation
pip3 install -U py-Ayra
Documentation
Usage
- Create folders named
plugins
,addons
,assistant
andresources
. - Add your plugins in the
plugins
folder and others accordingly. - Create a
.env
file with following mandatory Environment VariablesAPI_ID API_HASH SESSION MONGO_URI
- Check
.env.sample
for more details. - Run
python3 -m Ayra
to start the bot.
Creating plugins
-
To work everywhere
@ayra_cmd(
pattern="start"
)
async def _(e):
await e.eor("Ayra Started!")
-
To work only in groups
@ayra_cmd(
pattern="start",
groups_only=True,
)
async def _(e):
await eor(e, "Ayra Started.")
-
Assistant Plugins 👇
@asst_cmd("start")
async def _(e):
await e.reply("Ayra Started.")
See more working plugins on the offical repository!
Made with 💕 by Kynan.
License
Naya-Userbot is licensed under GNU Affero General Public License v3 or later.
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-Ayra-2.1.3b2.tar.gz
(71.0 kB
view hashes)
Built Distribution
py_Ayra-2.1.3b2-py3-none-any.whl
(106.3 kB
view hashes)
Close
Hashes for py_Ayra-2.1.3b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30d7cefab6026c5dcad7bb45f9aa43d7f07e3f1ef679a4862b4e815443795694 |
|
MD5 | 3e510a253ec7eca9b457d2eb543848cc |
|
BLAKE2b-256 | c901ac6f14b4ff3ff46436187210399f0769f9e5ae3631a0fb3067bb5a4965c0 |