A library to simplify eval and file handling in Telegram bots.
Project description
dapro
dapro = Dipanshu Agarwal Programs
Installation
pip install dapro
Usage
from dapro.telegram.telethon import daeval, daopen
OWNERS = "OWNER_ID"
@client.on(events.NewMessage(pattern=".eval"))
async def eval(event):
await daeval(event, client, OWNERS)
@client.on(events.NewMessage(pattern=".open"))
async def open_file(event):
await daopen(event, client)
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
dapro-0.1.4.tar.gz
(13.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dapro-0.1.4-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file dapro-0.1.4.tar.gz.
File metadata
- Download URL: dapro-0.1.4.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccae2a1f975c44f5909ec3b9a56d6605b9a0aba5c65f3d95592cbbfb5c145101
|
|
| MD5 |
ee3199fd0472d14468260bb903afe9a4
|
|
| BLAKE2b-256 |
ee4d232ae5d81d6d61b383a04981ef6e50e675e268982e2dbdceced8b3c961a8
|
File details
Details for the file dapro-0.1.4-py3-none-any.whl.
File metadata
- Download URL: dapro-0.1.4-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
facfac4ca58c671b315635df22f9a6f1bd2db5173f5c839ed606e2e3a089326b
|
|
| MD5 |
de11831fd5e37281d114a320db5876fe
|
|
| BLAKE2b-256 |
15f657719964228c990e8e125fe54d8a7950ae656a876d167743802abc4e25a8
|