Metadata-Version: 2.1
Name: bottem
Version: 1
Summary: A Python and Telegram utility package
Home-page: https://github.com/ErfanPY/bottem
Author: Erfan
Author-email: parsyab1@gmail.com
License: GPLv3
Project-URL: Source, https://github.com/ErfanPY/bottem
Keywords: telegram chat messenger mtproto api client library python
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Internet
Classifier: Topic :: Communications
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: ~=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pyrogram (==1.2.9)

# **Telegram bot just by calling one function.**

### Description:
If you have some functions and you want to **bot them** use **bottem** :wink:  
<br>
Actually, it is just a wrapper for pyrogram and adds a command handler for all of your module functions.

___
### Requirements
* Python3+
* Pyrogram

___
### Usage:
```sh
cp config.init.example config.init
vi config.init
```
```python
from . import my_module
from bottem import Bottem

Bottem(my_module)
```
**my_module.py**:
```python
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](https://my.telegram.org/apps)
* `api_hash`
* `bot_token` from [botfather](https://t.me/botfather)

Read [pyrogram](https://docs.pyrogram.org/topics/config-file) for more config info.  
___

PS:  
BTW I've stolen this README.md from this [repo](https://github.com/tamton-aquib)


