Skip to main content

py-Ayra Library

Core library of The Ayra, a python based telegram userbot.

PyPI - Version
PyPI - Downloads
Maintenance Open Source Love svg2 PRs Welcome

Installation

pip3 install -U py-Ayra

Documentation

Documentation

Usage

  • Create folders named plugins, addons, assistant and resources.
  • Add your plugins in the plugins folder and others accordingly.
  • Create a .env file with following mandatory Environment Variables
    API_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

License
Naya-Userbot is licensed under GNU Affero General Public License v3 or later.

Credits

Metadata

Release files for py-Ayra 2.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-Ayra 2.1.6
File Size Uploaded
py-Ayra-2.1.6.tar.gz 82.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-Ayra 2.1.6
File Interpreter ABI Platform
py_Ayra-2.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 188.5 kB

Release files / py-Ayra-2.1.6.tar.gz

Download URL py-Ayra-2.1.6.tar.gz
Size 82.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d0586df346ec9e026db59443d344773387a6fd54bff6f7e6a5ba82c7a810c8e5
BLAKE2b-256 checksum
How to use checksums
9a144164fd5880c944fd6df3b569d2ad62b0f312bea98534b74441e8a9a0a45e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / py_Ayra-2.1.6-py3-none-any.whl

Download URL py_Ayra-2.1.6-py3-none-any.whl
Size 105.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cd74d043967f133efc7ac85a4152f551aa089bc179e64c2f6278907a1df9a4d
BLAKE2b-256 checksum
How to use checksums
43843ed3a46d87a46e859dac6d63acbcbd31701a1624d1da9522d336128d52a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page