Skip to main content

A Python and Telegram utility package

Project description

Telegram bot just by calling one function.

Description:

If you have some functions and you want to bot them use bottem :wink:

Actually, it is just a wrapper for pyrogram and adds a command handler for all of your module functions.


Requirements

  • Python3+
  • Pyrogram

Usage:

cp config.init.example config.init
vi config.init
from . import my_module
from bottem import Bottem

Bottem(my_module)

my_module.py:

def hello(*args):
    return "Hello World!"

def echo(*words):
    return " ".join(words)

Then you just need to send commadn to your bot:

  • /echo This text is echoed. to receive This text is echoed. reply
  • /hello to receive Hello World! reply.

Config file

Read pyrogram for more config info.


PS:
BTW I've stolen this README.md from this repo

Project details


Release history Release notifications | RSS feed

This version

1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bottem-1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

bottem-1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file bottem-1.tar.gz.

File metadata

  • Download URL: bottem-1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.13

File hashes

Hashes for bottem-1.tar.gz
Algorithm Hash digest
SHA256 ea9cce893bf107e9090b14fd6736672047c0c1b0e85c3078a603bda83067f1a7
MD5 c8345fe42cebdc655c475c0c0ffb1e0b
BLAKE2b-256 49a0834d8e125f6f62c02bcee17a7af4f8a1db81dcc93f02c608903b0b654b94

See more details on using hashes here.

File details

Details for the file bottem-1-py3-none-any.whl.

File metadata

  • Download URL: bottem-1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.13

File hashes

Hashes for bottem-1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc79a52253687c76a564aa1e174e5906caa6afd237ccf298496571f3dd314a8f
MD5 8cbe2c3c5d36e751189524a60d609c67
BLAKE2b-256 7e8a6e283e195888317848afec8d82022f02e59f5293e1fcd0b115d0f86cb695

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