Skip to content
AellyXDPublic
forked from anunicn47/pyPuii

About

[Ultroid] Base Library - Telethon

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

py-Puii Library

Installation

pip3 install -U py-Puii

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
    REDIS_URI
    REDIS_PASSWORD
    
  • Check .env.sample for more details.
  • Run python3 -m pyPuii to start the bot.

Creating plugins

  • To work everywhere

@puii_cmd(
    pattern="start"
)   
async def _(e):   
    await e.eor("Puii Started!")   
  • To work only in groups

@puii_cmd(
    pattern="start",
    groups_only=True,
)   
async def _(e):   
    await eor(e, "Puii Started.")   
  • Assistant Plugins 👇

@asst_cmd("start")   
async def _(e):   
    await e.reply("Puii Started.")   

About

[Ultroid] Base Library - Telethon

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages