MessageFile

@Serializable
data class MessageFile(val id: FileId, val createdAt: Int? = null, val messageId: MessageId? = null)

File attached to a message.

Constructors

Link copied to clipboard
constructor(id: FileId, createdAt: Int? = null, messageId: MessageId? = null)

Properties

Link copied to clipboard
val createdAt: Int? = null

The Unix timestamp (in seconds) for when the message file was created.

Link copied to clipboard
val id: FileId

The identifier, which can be referenced in API endpoints.

Link copied to clipboard
val messageId: MessageId? = null

The ID of the message that the File is attached to.