Constructs a new InteractiveMessage.
Optional
properties:
IInteractiveMessage
Properties to set
Optional
body
InteractiveMessage body.
Optional
carouselInteractiveMessage carouselMessage.
Optional
collectionInteractiveMessage collectionMessage.
Optional
contextInteractiveMessage contextInfo.
Optional
footer
InteractiveMessage footer.
Optional
header
InteractiveMessage header.
Optional
interactiveInteractiveMessage interactiveMessage.
Optional
nativeInteractiveMessage nativeFlowMessage.
Optional
shopInteractiveMessage shopStorefrontMessage.
Static
create
Creates a new InteractiveMessage instance using the specified properties.
Optional
properties:
IInteractiveMessage
Properties to set
InteractiveMessage instance
Static
decode
Decodes an InteractiveMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
InteractiveMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes an InteractiveMessage message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
InteractiveMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified InteractiveMessage message. Does not implicitly verify messages.
InteractiveMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified InteractiveMessage message, length delimited. Does not implicitly verify messages.
InteractiveMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates an InteractiveMessage message from a plain object. Also converts values to their respective internal types.
Plain object
InteractiveMessage
Static
toCreates a plain object from an InteractiveMessage message. Also converts values to other types if specified.
InteractiveMessage
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents an InteractiveMessage.