ChatMessageDraft

data class ChatMessageDraft(val createdAt: Long, val participants: List<NostrPublicKey>, val content: String, val relation: ChatRelation = ChatRelation.None, val attachments: List<AttachmentMetadata> = emptyList(), val emojiTags: List<List<String>> = emptyList(), val extensionTags: List<List<String>> = emptyList())

Complete canonical kind-14 writer input.

Constructors

Link copied to clipboard
constructor(createdAt: Long, participants: List<NostrPublicKey>, content: String, relation: ChatRelation = ChatRelation.None, attachments: List<AttachmentMetadata> = emptyList(), emojiTags: List<List<String>> = emptyList(), extensionTags: List<List<String>> = emptyList())

Properties

Link copied to clipboard

Canonical attachment metadata.

Link copied to clipboard

UTF-8 message body.

Link copied to clipboard

Event timestamp in Unix seconds.

Link copied to clipboard

Custom-emoji tags in wire order.

Link copied to clipboard

Unknown tags retained after canonical fields.

Link copied to clipboard

Every conversation member except the local author.

Link copied to clipboard

Optional reply or forward relation.