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 to attach or write depending on type of content.
Set room ID attribute, clear room name so adapter will use ID
Set user attribute, overwrites room if user has room attribute
Set the method to be used by message adapter to respond.
Add string content to an envelope, could be message text or reaction
Generated using TypeDoc
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.