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.0.tar.gz
(83.7 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.0-py3-none-any.whl
(106.8 kB
view details)
File details
Details for the file py-Ayra-2.0.0.tar.gz.
File metadata
- Download URL: py-Ayra-2.0.0.tar.gz
- Upload date:
- Size: 83.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb58e0cf064f731a6d119293a9c7ce5e35f44076ea97ae49dd5ba96e505945ba
|
|
| MD5 |
7e787439c752b62671be082989d8473d
|
|
| BLAKE2b-256 |
f208bf860ff26fde1fd70bbf42d09ed871ac26ce3f04875fe4fc94fcc6d5d391
|
File details
Details for the file py_Ayra-2.0.0-py3-none-any.whl.
File metadata
- Download URL: py_Ayra-2.0.0-py3-none-any.whl
- Upload date:
- Size: 106.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9f64ac2ec9e4a3f77b7fc93f73d052ed0ac466b34c4c9204966fd7a53ad83fa
|
|
| MD5 |
d01ea5e2a3a672699d60c14c6feca958
|
|
| BLAKE2b-256 |
b0997c0d71cd80dcc3e96304d93f13390672a4d9dcec64e7cbf1328296a5e02a
|