Jump to top

TextMessage

interface

A TextMessage interface provided to suggestReplies().

Properties

isLocalUser

</>

Whether the message is a local user. If false, a userId must be provided for the message.

isLocalUser: undefined | false | true;

text

</>

The message text.

text: string;

timestamp

</>

The timestamp of the message in milliseconds.

timestamp: undefined | number;

userId

</>

A user ID of a remote user.

userId: undefined | string;