DecodedMessage
Defined in: sdks/js/node-sdk/dist/index.d.ts:37
Represents a decoded XMTP message
Type Parameters
Section titled “Type Parameters”ContentTypes
Section titled “ContentTypes”ContentTypes = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DecodedMessage<
ContentTypes>(codecRegistry,message):DecodedMessage<ContentTypes>
Defined in: sdks/js/node-sdk/dist/index.d.ts:54
Parameters
Section titled “Parameters”codecRegistry
Section titled “codecRegistry”message
Section titled “message”DecodedMessage
Returns
Section titled “Returns”DecodedMessage<ContentTypes>
Properties
Section titled “Properties”content
Section titled “content”content:
ContentTypes|undefined
Defined in: sdks/js/node-sdk/dist/index.d.ts:40
The decoded content of the message
contentType
Section titled “contentType”contentType:
ContentTypeId
Defined in: sdks/js/node-sdk/dist/index.d.ts:41
The content type of the message content
conversationId
Section titled “conversationId”conversationId:
string
Defined in: sdks/js/node-sdk/dist/index.d.ts:42
Unique identifier for the conversation
deliveryCursor?
Section titled “deliveryCursor?”
optionaldeliveryCursor?:DeliveryCursor
Defined in: sdks/js/node-sdk/dist/index.d.ts:39
Database-local position of this delivery. Absent for ordinary history reads.
deliveryStatus
Section titled “deliveryStatus”deliveryStatus:
DeliveryStatus
Defined in: sdks/js/node-sdk/dist/index.d.ts:43
Current delivery status of the message (“unpublished” | “published” | “failed”)
expiresAt?
Section titled “expiresAt?”
optionalexpiresAt?:Date
Defined in: sdks/js/node-sdk/dist/index.d.ts:45
Timestamp when the message will expire
expiresAtNs?
Section titled “expiresAtNs?”
optionalexpiresAtNs?:bigint
Defined in: sdks/js/node-sdk/dist/index.d.ts:44
Timestamp when the message will expire (in nanoseconds)
fallback?
Section titled “fallback?”
optionalfallback?:string
Defined in: sdks/js/node-sdk/dist/index.d.ts:46
Optional fallback text for the message
id:
string
Defined in: sdks/js/node-sdk/dist/index.d.ts:47
Unique identifier for the message
kind:
GroupMessageKind
Defined in: sdks/js/node-sdk/dist/index.d.ts:48
Type of message (“application” | “membership_change”)
numReplies
Section titled “numReplies”numReplies:
number
Defined in: sdks/js/node-sdk/dist/index.d.ts:49
Number of replies to the message
reactions
Section titled “reactions”reactions:
DecodedMessage<Reaction>[]
Defined in: sdks/js/node-sdk/dist/index.d.ts:50
Reactions to the message
senderInboxId
Section titled “senderInboxId”senderInboxId:
string
Defined in: sdks/js/node-sdk/dist/index.d.ts:51
Identifier for the sender’s inbox
sentAt
Section titled “sentAt”sentAt:
Date
Defined in: sdks/js/node-sdk/dist/index.d.ts:52
Timestamp when the message was sent
sentAtNs
Section titled “sentAtNs”sentAtNs:
bigint
Defined in: sdks/js/node-sdk/dist/index.d.ts:53
Timestamp when the message was sent (in nanoseconds)

