0.1.0 • Published 6 years ago
messenger-json-schema v0.1.0
messenger-json-schema
WIP: JSON schema for Messenger messages
Install
npm -i messenger-json-schemayarn add messenger-json-schemaFormat
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 | :white_check_mark: |
| Attachment | :white_check_mark: |
| Quick reply: Email | :white_check_mark: |
| Quick reply: Phone number | :white_check_mark: |
| Quick reply: Text | :white_check_mark: |
| Template: Generic | :x: |
| Template: Button | :x: |
| Template: Receipt | :x: |
| Template: Media | :x: |
| Button: URL | :x: |
| Button: Postback | :x: |
| Button: Call | :white_check_mark: |
| Button: Login | :x: |
| Button: Logout | :x: |
| Button: Game Play | :x: |
Notes
This schema validates against the changes from June 10, 2019.
References
0.1.0
6 years ago