Company
Date Published
Author
Steve Lorello
Word count
521
Language
English
Hacker News points
None

Summary

The Messages API enables developers to connect with customers across various social-messaging channels such as WhatsApp, Facebook Messenger, and Viber. When a customer sends an unsupported message type, the request body of the inbound message contains a "type" field that indicates the unsupported payload. This information can be used by the developer to handle the situation accordingly. For example, if a customer sends a sticker via WhatsApp, the server logs a message indicating that it received an unsupported message from the customer's number. The Messages API provides developers with a way to detect and respond to such messages in their code, allowing them to improve their application's user experience.