aioface is a powerful and simple asynchronous framework for the Facebook Messenger API written in Python 3.7.
Project description
aioface
aioface is a powerful and simple asynchronous framework for the Facebook Messenger API written in Python 3.7.
Installation
$ pip install aioface
Examples
Echo bot
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioface-0.0.2.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for aioface-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27ecd112f229036b50e429f55dbf37fba301b9fe495d5a97d98cd04845339841 |
|
MD5 | 9c1691506c8f6b4a690a6f316570175f |
|
BLAKE2b-256 | 86d8aac1253adfcc0d77a3cda8cf69f71460027e2bd0b12df255dcc6d749515f |