Welcome to Bizarro’s documentation!

Bizarro is a python library for Facebook Messenger Bot. It’s basic task is to help developers creating payloads for Facebook Messenger Bot. Facebook has different templates and buttons for their Messenger Platform. However, it’s extremely tedious to write the payload every time. Bizarro here can help you to write awesome bot without worrying about the payload. All you need to do is send the necessary text inputs and bizarro’s function will return the appropriate payload for you. Bizarro takes help of one of my other python package - Zathura, (A sqlite3 logger I wrote for one of my package). Currently, the library is in alpha version.

How to Install

It’s a pypi package (https://pypi.org/project/bizarro/). So:

pip install bizarro

Current support

Right now, bizarro has support for the following

  1. Echo Back (Simple text reply)

  2. Quick Reply

  3. Typing On

  4. Marked Seen

  5. Button
    • Postback Button

    • Url Button

    • Call Button

  6. Template
    • Button Template

    • Generic Template

    • List Template

Attachment sending is not enabled in any other buttons or template right now. They will be rolled out in upcoming versions.

Example

Suppose you want to send user a simple “Hello”:

from bizarro.utility.util import Utility

echo_text = bizarro_utility().basic_text_reply_payload(fb_user_id, message="Hello")

now all you have to do is, send the payload echo_text with your page_access_token. That was a simple example. Checkout the complete documentation for better understanding