Body

Body

Body API object

Constructor

new Body(text)

Source:
Properties:
Name Type Description
text String The text of the body
Builds a body component for an Interactive message
Parameters:
Name Type Description
text String The text of the message. Maximum length: 1024 characters.
Throws:
  • If text is not provided
    Type
    Error
  • If text is over 1024 characters
    Type
    Error