Envelopes are the outgoing equivalent of a message. They can be created to respond to a received message, or initialised to send unprompted by input. The envelope contains address details and the content (strings or payload) for a variety of response methods through the message adapter. Helpers provide simple interface for adding strings and attachments, but the payload property can be used to access additional helpers for rich content.
Create an envelope to dispatch unprompted or from a branch callback.
Accessor for payload instance creates if it doesn't exist
Add multi-media attachments to a message via payload handlers
Helper for attaching or writing depending on a dynamic array of items
Set room ID attribute, clear room name so adapter will use ID
Set room name attribute, clear room ID so adapter will use name
Set user attribute, overwrites room if user has room attribute
Helper to set the method to be used by message adapter to respond/send
Add string content to an envelope, could be message text or reaction
Generated using TypeDoc