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.0.tar.gz (83.7 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.0-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

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

Hashes for py-Ayra-2.0.0.tar.gz
Algorithm Hash digest
SHA256 cb58e0cf064f731a6d119293a9c7ce5e35f44076ea97ae49dd5ba96e505945ba
MD5 7e787439c752b62671be082989d8473d
BLAKE2b-256 f208bf860ff26fde1fd70bbf42d09ed871ac26ce3f04875fe4fc94fcc6d5d391

See more details on using hashes here.

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

Hashes for py_Ayra-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9f64ac2ec9e4a3f77b7fc93f73d052ed0ac466b34c4c9204966fd7a53ad83fa
MD5 d01ea5e2a3a672699d60c14c6feca958
BLAKE2b-256 b0997c0d71cd80dcc3e96304d93f13390672a4d9dcec64e7cbf1328296a5e02a

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