Send message with Buttons
The method is designed to send a message with buttons to a private or group chat
Last updated
The method is designed to send a message with buttons to a private or group chat
Last updated
Button message functionality is currently provided on an 'as-is' basis due to its inherent instability and dependency on Meta's updates. Please be aware that with each new WhatsApp update, the behavior of button messages may change.
For more details, visit the Button Status topic.
Peculiarities when working with buttons:
the button name can have no more than 25 characters;
there can be no more than 3 buttons of this type;
the button can be pressed only 1 time.
for current nuances of button display, see the article Current status of Buttons on WhatsApp
You can send a message with the button to either private chat or group chat. The buttons, e.g. YES / NO, can be selected by the user and used as a response to the sent message.
There are four types of buttons on WhatsApp:
Simple text button (Quick-reply)
List of options
Link Button
OTP Button (Copy Button)
Call Button
Sending requires a request to be made to:
POST https://gate.whapi.cloud/messages/interactive
When the recipient clicks on a button, it automatically sends a reply to your message containing the buttonโs text. If you've set up a webhook for the channel, you'll receive a callback with both the button ID and the text.
Note that the callback may be slightly different if the customer clicked the button in Web WhatsApp:
Unfortunately, WhatsApp does not track the event of clicking these buttons. Therefore, it is not possible to get a webhook for pressing these buttons.
You can pass any text to the snippet that will be copied after the button is clicked.
Unfortunately, WhatsApp does not track the event of clicking these buttons. Therefore, it is not possible to get a webhook for pressing these buttons.
When the recipient clicks on a button, it automatically sends a reply to your message containing the buttonโs text. If you've set up a webhook for the channel, you'll receive a callback with both the button ID and the text.
We continue to explore WhatsApp's capabilities and add to our methods for automation. In the upcoming updates we will have the ability to send messages with picture/media and buttons.
If you have any questions, our team is always available to help you.