aioface-0.0.2
توضیحات
aioface is a powerful and simple asynchronous framework for the Facebook Messenger API written in Python 3.7.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aioface-0.0.2 |
| نام | aioface |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kirill Kuzin |
| ایمیل نویسنده | offkirillkuzin@gmail.com |
| آدرس صفحه اصلی | https://github.com/kirillkuzin/aioface |
| آدرس اینترنتی | https://pypi.org/project/aioface/ |
| مجوز | MIT |
# aioface
aioface is a powerful and simple asynchronous framework for the Facebook Messenger API written in Python 3.7.
## Installation
```console
$ pip install aioface
```
## Examples
### Echo bot
```Python
from aioface import Bot, Dispatcher, BaseStorage, FacebookRequest
dispatcher = Dispatcher(BaseStorage())
bot = Bot(webhook_token='your_webhook_token',
page_token='your_page_token',
dispatcher=dispatcher)
@dispatcher.message_handler()
async def echo_handler(fb_request: FacebookRequest):
await fb_request.send_message(message=fb_request.message_text)
if __name__ == '__main__':
bot.run()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl aioface-0.0.2:
pip install aioface-0.0.2.whl
نصب پکیج tar.gz aioface-0.0.2:
pip install aioface-0.0.2.tar.gz