A library to simplify eval and file handling in Telegram bots.
Project description
dapro
DATOE simplifies handling .eval and .open commands in Python Telegram bots.
Installation
pip install dapro
Usage
from dapro 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.3.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.3-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file dapro-0.1.3.tar.gz.
File metadata
- Download URL: dapro-0.1.3.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 |
c6bc80f3ec96355f21e7cc1d22c13f59495a54ccf0a760459fab940fe565f623
|
|
| MD5 |
b0eaa17b55ddb65747807d5bbd4a2b67
|
|
| BLAKE2b-256 |
3bc1b8c5efc0b3517e140c09ae12ae65cf3faa84196ab314cc09cbebc73f3109
|
File details
Details for the file dapro-0.1.3-py3-none-any.whl.
File metadata
- Download URL: dapro-0.1.3-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 |
5c505b33ef87ae136a8fc00fb293b62504344ef5beaae6ab3bde3716d34b7ed2
|
|
| MD5 |
fe8138c3dfc42e883ce37c31afd110ea
|
|
| BLAKE2b-256 |
8bad628713e85404eecfeaf5169552b54f63707d43785fbcf93ea839342a81ba
|