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,assistantandresources. - Add your plugins in the
pluginsfolder and others accordingly. - Create a
.envfile with following mandatory Environment VariablesAPI_ID API_HASH SESSION MONGO_URI - Check
.env.samplefor more details. - Run
python3 -m Ayrato 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.0.4.tar.gz
(83.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
py_Ayra-2.0.4-py3-none-any.whl
(106.8 kB
view details)
File details
Details for the file py-Ayra-2.0.4.tar.gz.
File metadata
- Download URL: py-Ayra-2.0.4.tar.gz
- Upload date:
- Size: 83.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39e6bdbe4ff987f90e4808a1501721b8c09a367570401d1419a60b2a9d9b6ab4
|
|
| MD5 |
f37a583746bd90c9c3c0ed97b46a9c64
|
|
| BLAKE2b-256 |
a5ddc25241f4af70ebfdae3476b227fcc38eea5ef235549e9be16a31fe58dd48
|
File details
Details for the file py_Ayra-2.0.4-py3-none-any.whl.
File metadata
- Download URL: py_Ayra-2.0.4-py3-none-any.whl
- Upload date:
- Size: 106.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ca915ea47e147b2538bef234c6157201856fd37944f83930d7ca0bd82d4d61f
|
|
| MD5 |
9ef258ebfa70940b2ea1785fe83bdd17
|
|
| BLAKE2b-256 |
ffb64f15e4810e244be9bfdec1a742905dfdbbffc48b0afb28772606c97308bc
|