Metadata-Version: 2.4
Name: jsonbot
Version: 0.1.0
Summary: Add your description here
Home-page: https://github.com/sinofarmonov323/jsonbot
Author: https://t.me/jackson_rodger
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: build>=1.5.0
Requires-Dist: osonbot>=1.2.3
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

# JsonBot

# Installation
```shell
pip install jsonbot
```

# Usage
```python
from jsonbot import JsonBot

JsonBot("token", {
    "messages": {
        "/start", {"response": "hello *{first_name}*", "parse_mode": "MarkdownV2"},
        "/help": {"response": "Hello how can i help you"}
    }
}).run()
```
## you can generate code to osonbot library itself (supports only osonbot library, and can not generate fully)
```python
from jsonbot import JsonBot

JsonBot("token", {
    "/start", {"response": "hello *{first_name}*", "parse_mode": "MarkdownV2"},
    "/help": {"response": "Hello how can i help you"}
}).generate_code(library="osonbot", file="main.py")
```
## Handling Inline Messages
```python
from jsonbot import JsonBot

JsonBot("token", {
    "inline_messages": {
        "callback_data1", {"response": "you clicked the first inline button"},
        "callback_data2": {"response": "you clicked the sedond inline button"}
    }
}).run()
```

## Send message to specific user by his/her ID
```python
from jsonbot import JsonBot

JsonBot("token", {
    "messages": {
        "/start", {"response": "hello *{first_name}*", "parse_mode": "MarkdownV2"},
        "/send": {"id": 123456789, "response": "This is a message for a specific user"}
    }
}).run()
```

# Done for now
