WireMessage
The message envelope. Retracted messages come back with retracted: true
and content: null (a tombstone). Ephemeral messages are not persisted and
carry seq: null (they are not returned by history).
- contentrequired
The message payload, opaque to the platform. Any JSON value, including
nullfor retracted messages. - ephemeralType: booleanrequired
Whether the message is ephemeral (not persisted, no
seq). - idType: stringrequired
Platform-assigned message id. Unique within the channel.
- kindType: stringrequired
Content class (
textin v1). - retractedType: booleanrequired
Whether the message was retracted after publish.
- Properties: 3senderType: WireSenderrequired
- seqType: integer | nullrequired
Per-channel sequence number, or
nullfor ephemeral messages. - timestampType: integerrequired
Epoch milliseconds.
- typeType: stringrequired
Userland discriminator.
- Properties: 1mentionsType: array of Mention
- threadType: string
Parent Id Present on thread replies: the id of the message that started the thread — that id IS the thread id.
- threadType: integer
Seq Present on thread replies: dense position within the thread's OWN sequence space, independent of the channel's
seqand of sibling threads. Per-thread unread is derived from this, not fromseq. - toType: string
Present when the message was delivered to a single recipient (
to:-send).