Skip to main content

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.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dapro-0.1.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file dapro-0.1.2.tar.gz.

File metadata

  • Download URL: dapro-0.1.2.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

Hashes for dapro-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1bd4ee0a38d9976ac599c4b77026f5decb1611ecd08c523ade3fb21503d868ee
MD5 f976caca3c6c97b5a82dd95de2f12661
BLAKE2b-256 f78daff509a522bd44c5c1b56a0045588c28d2f2eabfa8bd6f41e68b5d1efd47

See more details on using hashes here.

File details

Details for the file dapro-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dapro-0.1.2-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

Hashes for dapro-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63cdd35cf43a8e2b0c7d0cd24a449b11470be97ffb4da70f2014bbcce822f799
MD5 0cb88c24d511f73c455f610d239ef691
BLAKE2b-256 07507b2a9282b182d3659050123fc29c77840111277a7be8917ea813d6025930

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