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-caska 1.0.3

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-caska 1.0.3
File Size Uploaded
py-caska-1.0.3.tar.gz 83.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-caska 1.0.3
File Interpreter ABI Platform
py_caska-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 189.8 kB

Release files / py-caska-1.0.3.tar.gz

Download URL py-caska-1.0.3.tar.gz
Size 83.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fcc1be6fd92008d28af59e21953787ab2dad76d5e84d0c5bdfc20bd01e84a305
BLAKE2b-256 checksum
How to use checksums
288b4315674613c1bfd24e3af8c3222101fdd60cd1f426a333b7051179d4f060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / py_caska-1.0.3-py3-none-any.whl

Download URL py_caska-1.0.3-py3-none-any.whl
Size 106.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce1b8e014b53e05322c25736a505b86c0d942fca5fb05859834539f1e74c3fb7
BLAKE2b-256 checksum
How to use checksums
0516ca1e1486e915b937ba1072beb94f17c91099607e01c1288529ce35c53428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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