Message

A received or stored message. MessageFields holds its fields and equality.

Constructors

Link copied to clipboard
constructor(data: MessageData)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun conversation(): Conversation?
Link copied to clipboard
suspend fun delete(): MessageId
Link copied to clipboard
suspend fun deleteLocally()
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
suspend fun parent(): Message?
Link copied to clipboard
suspend fun react(reaction: Reaction, options: SendOptions? = null): MessageId
Link copied to clipboard
suspend fun refresh(): Message?
Link copied to clipboard
suspend fun reply(text: String, options: SendOptions? = null): MessageId
suspend fun reply(content: EncodedContent, options: SendOptions? = null): MessageId

suspend fun <T : Any> reply(codec: ContentCodec<T>, value: T, options: SendOptions? = null): MessageId

Reply with a value of a typed codec. The codec's fallback applies to the nested envelope; the reply keeps the reply type's push default unless options.shouldPush is set. A failed codec step is CodecEncodeFailed, with no publish attempt.