@waylis/core / Message
Interface: Message
Defined in: src/message/message.ts:22
Represents a chat message.
Properties
body
body: MessageBody;
Defined in: src/message/message.ts:38
Message content.
chatID
chatID: string;
Defined in: src/message/message.ts:26
ID of the chat this message belongs to.
createdAt
createdAt: Date;
Defined in: src/message/message.ts:42
Timestamp when the message was created.
id
id: string;
Defined in: src/message/message.ts:24
Unique identifier of the message.
reply?
optional reply: ExpectedReply<UserMessageBodyType>;
Defined in: src/message/message.ts:40
Restriction settings for replies, if any.
replyTo?
optional replyTo: string;
Defined in: src/message/message.ts:30
ID of the message this one replies to, if any.
scene?
optional scene: string;
Defined in: src/message/message.ts:34
Optional scene identifier for workflow tracking.
senderID
senderID: string;
Defined in: src/message/message.ts:28
ID of the user who sent the message.
step?
optional step: string;
Defined in: src/message/message.ts:36
Optional step identifier within a scene.
threadID
threadID: string;
Defined in: src/message/message.ts:32
ID of the thread this message belongs to.