Interface WhatsAppInteractiveMessageBuilder
- All Known Implementing Classes:
WhatsAppInteractiveMessageBuilderImpl
public interface WhatsAppInteractiveMessageBuilder
In order to understand this API better you need to be familiar with the WhatsApp
Sending Interactive Messages.
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for finishing building the Button message details and sending the message.static interface
Builder for finishing building the List message details and sending the message.static interface
Builder for building a list message section.static interface
Builder for building a row in a section for list interactive messages. -
Method Summary
Modifier and TypeMethodDescriptionThe main content of the interactive message bodybusinessAccountId
(String businessAccountId) The ID of the business account for the external userbutton()
Create a button message.externalUserId
(String externalUserId) The ID of the external user to which the message should be sent toThe footer text that would be visible to the userCreate a List message with the action content visible to the user.mediaHeader
(String mediaId) The content item ID for the media header.The ID of the message being sent (can be used for logging purposes)textHeader
(String headerText) The header text that would be visible to the user.
-
Method Details
-
externalUserId
The ID of the external user to which the message should be sent to- Parameters:
externalUserId
- the external user ID
-
businessAccountId
The ID of the business account for the external user- Parameters:
businessAccountId
- the business account ID
-
messageId
The ID of the message being sent (can be used for logging purposes)- Parameters:
messageId
- the message ID
-
textHeader
The header text that would be visible to the user.- Parameters:
headerText
- the header text
-
mediaHeader
The content item ID for the media header.- Parameters:
mediaId
- the media header
-
body
The main content of the interactive message body- Parameters:
bodyText
- the main content
-
button
Create a button message. UseWhatsAppInteractiveMessageBuilder.ButtonMessageBuilder.send()
to actually send the message. -
list
Create a List message with the action content visible to the user. UseWhatsAppInteractiveMessageBuilder.ListMessageBuilder.send()
to actually send the message.- Parameters:
actionContent
- the content of the button visible ot the user
-