A Secure and Powerful Python-Telethon Based Library For Puii Userbot.
Project description
py-Puii Library
Installation
pip3 install -U py-Puii
Usage
- Create folders named
plugins
,addons
,assistant
andresources
. - Add your plugins in the
plugins
folder and others accordingly. - Create a
.env
file with following mandatory Environment VariablesAPI_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.")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-Puii-2022.6.6.tar.gz
(79.0 kB
view details)
Built Distribution
File details
Details for the file py-Puii-2022.6.6.tar.gz
.
File metadata
- Download URL: py-Puii-2022.6.6.tar.gz
- Upload date:
- Size: 79.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b46e0df112424be03f0791f8710f41d41de799d1225b5e604d3873942c0399 |
|
MD5 | 075d14c035e232289649f6f215c7ee23 |
|
BLAKE2b-256 | 809e8f4b9efa0f3685508421a286c7a413d5879dfc8b48e99ae1a05fac475f23 |
File details
Details for the file py_Puii-2022.6.6-py3-none-any.whl
.
File metadata
- Download URL: py_Puii-2022.6.6-py3-none-any.whl
- Upload date:
- Size: 94.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e8cc669bb23ccfcd8556e2fa53505368a4f86c105a88d768a4fd35d4f9fb405 |
|
MD5 | 676e4916b195bd812a7ff7a0eda673b0 |
|
BLAKE2b-256 | 100d2a2827fff29ec8308bd4f0bb764e513e3cfdf357f86154b86abcde93c5fd |