bottem 1

Last updated:

0 purchases

bottem 1 Image
bottem 1 Images
Add to Cart

Description:

bottem 1

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

api_id from telegram
api_hash
bot_token from botfather

Read pyrogram for more config info.

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.