Skip to content

@waylis/core


@waylis/core / Message

Interface: Message

Defined in: message/message.ts:23

Represents a chat message.

Properties

body

ts
body: MessageBody;

Defined in: message/message.ts:39

Message content.


chatID

ts
chatID: string;

Defined in: message/message.ts:27

ID of the chat this message belongs to.


createdAt

ts
createdAt: Date;

Defined in: message/message.ts:43

Timestamp when the message was created.


id

ts
id: string;

Defined in: message/message.ts:25

Unique identifier of the message.


reply?

ts
optional reply: ExpectedReply<UserMessageBodyType>;

Defined in: message/message.ts:41

Restriction settings for replies, if any.


replyTo?

ts
optional replyTo: string;

Defined in: message/message.ts:31

ID of the message this one replies to, if any.


scene?

ts
optional scene: string;

Defined in: message/message.ts:35

Optional scene identifier for workflow tracking.


senderID

ts
senderID: string;

Defined in: message/message.ts:29

ID of the user who sent the message.


step?

ts
optional step: string;

Defined in: message/message.ts:37

Optional step identifier within a scene.


threadID

ts
threadID: string;

Defined in: message/message.ts:33

ID of the thread this message belongs to.

Released under the MIT License.