TextOrMessageType type

Flexible range of possible prompts that can be sent to a user.

  • {string} - A simple message to send the user.
  • {string[]} - Array of possible messages to send the user. One will be chosen at random.
  • {IMessage} - Message to send the user expressed using JSON. The message can contain attachments and suggested actions. Not all channels natively support all message properties but most channels will down render unsupported fields.
  • {IIsMessage} - An instance of the Message builder class. This class helps to localize your messages and provides helpers to aid with formatting the text portions of your message.
type TextOrMessageType = string | string[] | IMessage | IIsMessage