messenger-json-schema
WIP: JSON schema for Messenger messages
Install
npm -i messenger-json-schema
yarn add messenger-json-schema
Format
Provides schemas for JSON formatted Facebook Messenger messages. Validates against JSON schema using ajv format.
Supported Messages
https://developers.facebook.com/docs/messenger-platform/reference/send-api/
Message type | Implemented |
---|---|
Text | |
Attachment | |
Quick reply: Email | |
Quick reply: Phone number | |
Quick reply: Text | |
Template: Generic | |
Template: Button | |
Template: Receipt | |
Template: Media | |
Button: URL | |
Button: Postback | |
Button: Call | |
Button: Login | |
Button: Logout | |
Button: Game Play |
Notes
This schema validates against the changes from June 10, 2019.