aioChatbase-1.0.0
توضیحات
Asyncio Chatbase API library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aioChatbase-1.0.0 |
| نام | aioChatbase |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Oleg A. |
| ایمیل نویسنده | 1282524@gmail.com |
| آدرس صفحه اصلی | https://github.com/Olegt0rr/aioChatbase |
| آدرس اینترنتی | https://pypi.org/project/aioChatbase/ |
| مجوز | - |

[](https://pypi.python.org/pypi/aiogram)
[](https://opensource.org/licenses/MIT)
[](https://pypi.python.org/pypi/aioChatbase)
[](https://pypi.python.org/pypi/aioChatbase)
**aioChatbase** is a library for [Chatbase Generic Message API](https://chatbase.com/documentation/generic) written in Python 3.6 with [asyncio](https://docs.python.org/3/library/asyncio.html) and [aiohttp](https://github.com/aio-libs/aiohttp).
It helps to integrate Chatbase with your chatbot.
## How to install
```
python3.6 -m pip install aioChatbase
```
## How to use
1) Import Chatbase
```python
from aiochatbase import Chatbase
```
2) Create cb instance
```python
cb = Chatbase(API_KEY, BOT_PLATFORM)
```
3) Register handled message
```python
await cb.register_message(user_id='123456', intent='start')
```
4) Register non-handled message
```python
await cb.register_message(user_id='123456', intent='unknown message', not_handled=True)
```
5) Register url click
```python
await cb.register_click(url='google.com')
```
6) Close instance on your app shutdown
```python
await cb.close()
```
## Examples
Check more examples at the [/examples](https://github.com/Olegt0rr/aioChatbase/tree/master/examples) folder
## Wiki
Feel free to read our [Wiki](https://github.com/Olegt0rr/aioChatbase/wiki)
نحوه نصب
نصب پکیج whl aioChatbase-1.0.0:
pip install aioChatbase-1.0.0.whl
نصب پکیج tar.gz aioChatbase-1.0.0:
pip install aioChatbase-1.0.0.tar.gz