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/helloto 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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea9cce893bf107e9090b14fd6736672047c0c1b0e85c3078a603bda83067f1a7
|
|
| MD5 |
c8345fe42cebdc655c475c0c0ffb1e0b
|
|
| BLAKE2b-256 |
49a0834d8e125f6f62c02bcee17a7af4f8a1db81dcc93f02c608903b0b654b94
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc79a52253687c76a564aa1e174e5906caa6afd237ccf298496571f3dd314a8f
|
|
| MD5 |
8cbe2c3c5d36e751189524a60d609c67
|
|
| BLAKE2b-256 |
7e8a6e283e195888317848afec8d82022f02e59f5293e1fcd0b115d0f86cb695
|