Class Attachment
A file attached to a message (image, audio, or any file). A message may carry zero or more attachments alongside its text content (Discord-style).
public class Attachment
- Inheritance
-
Attachment
- Inherited Members
Constructors
Attachment()
public Attachment()
Properties
AsciiPreview
Rendered ASCII-art preview for images (color-tag format). Null for audio/files. Stored encrypted-at-rest when database encryption is enabled, and room-encrypted for end-to-end encrypted channels.
public string? AsciiPreview { get; set; }
Property Value
FileName
public required string FileName { get; set; }
Property Value
FileSize
Stored blob size in bytes (ciphertext size for encrypted channels).
public long FileSize { get; set; }
Property Value
Id
public Guid Id { get; set; }
Property Value
Kind
public AttachmentKind Kind { get; set; }
Property Value
Message
public Message? Message { get; set; }
Property Value
MessageId
public Guid MessageId { get; set; }
Property Value
Url
Relative download URL, e.g. /api/files/{fileId}.
public required string Url { get; set; }