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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page