No project description provided
Project description
"888 `"'
888oooo. oooo oooooooo .oooo. oooo d8b oooo d8b .ooooo.
d88' `88b `888 d'""7d8P `P )88b `888""8P `888""8P d88' `88b
888 888 888 .d8P' .oP"888 888 888 888 888
888 888 888 .d8P' .P d8( 888 888 888 888 888
`Y8bod8P' o888o d8888888P `Y888""8o d888b d888b `Y8bod8P'
Bizarro
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
- Echo Back (Simple text reply)
- Quick Reply
- Typing On
- Marked Seen
- Button
- Postback Button
- Url Button
- Call Button
- 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.
How to work with bizarro
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. Code examples are coming soon.
Thank you, Ibtehaz, April 03, 2019
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
Built Distribution
Hashes for bizarro-0.0.0.1.dev7.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4204b9d73e473a6d6029f408e3d5c47dd22a07629b63d279db0b69f638ba64f5 |
|
MD5 | 7f09018b6ddb0f56e44d6c73300498fa |
|
BLAKE2b-256 | d9e0467372836ac9bc3e32aef7d25bf48977a9ce7a2efe085153bce891175777 |
Hashes for bizarro-0.0.0.1.dev7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94e32902f3396277984fce98b759b8c0c6e32d6e0a7fe6f5cdcfc7575da8b0dc |
|
MD5 | d38c574f8896b2997b348addb309c6a8 |
|
BLAKE2b-256 | 7704c79e4bef88f45b8845adaa48ce1f2978224105200a8753fb48cb8e7bd3f8 |