Skip to main content

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-caska-1.0.3.tar.gz (83.3 kB view details)

Uploaded Source

Built Distribution

py_caska-1.0.3-py3-none-any.whl (106.5 kB view details)

Uploaded Python 3

File details

Details for the file py-caska-1.0.3.tar.gz.

File metadata

  • Download URL: py-caska-1.0.3.tar.gz
  • Upload date:
  • Size: 83.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for py-caska-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fcc1be6fd92008d28af59e21953787ab2dad76d5e84d0c5bdfc20bd01e84a305
MD5 2050dd262dbe43bb41189db5fc8b1a42
BLAKE2b-256 288b4315674613c1bfd24e3af8c3222101fdd60cd1f426a333b7051179d4f060

See more details on using hashes here.

File details

Details for the file py_caska-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: py_caska-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 106.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for py_caska-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce1b8e014b53e05322c25736a505b86c0d942fca5fb05859834539f1e74c3fb7
MD5 65cd05f503eb0ec7018724fc81db1a3b
BLAKE2b-256 0516ca1e1486e915b937ba1072beb94f17c91099607e01c1288529ce35c53428

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page