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-Ayra-2.0.4.tar.gz (83.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_Ayra-2.0.4-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

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

Hashes for py-Ayra-2.0.4.tar.gz
Algorithm Hash digest
SHA256 39e6bdbe4ff987f90e4808a1501721b8c09a367570401d1419a60b2a9d9b6ab4
MD5 f37a583746bd90c9c3c0ed97b46a9c64
BLAKE2b-256 a5ddc25241f4af70ebfdae3476b227fcc38eea5ef235549e9be16a31fe58dd48

See more details on using hashes here.

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

Hashes for py_Ayra-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca915ea47e147b2538bef234c6157201856fd37944f83930d7ca0bd82d4d61f
MD5 9ef258ebfa70940b2ea1785fe83bdd17
BLAKE2b-256 ffb64f15e4810e244be9bfdec1a742905dfdbbffc48b0afb28772606c97308bc

See more details on using hashes here.

Supported by

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