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 receiveThis text is echoed.
reply/hello
to receiveHello 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
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)
Built Distribution
bottem-1-py3-none-any.whl
(14.6 kB
view hashes)