Skip to main content

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


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)

Uploaded Source

Built Distribution

aioface-0.0.2-py2.py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page