Class Attachment
Represents an attachment (image, audio, video, or file) for a message.
public class Attachment
- Inheritance
-
Attachment
- Inherited Members
Properties
Caption
Additional text to accompany the attachment.
[JsonPropertyOrder(2)]
public string Caption { get; set; }
Property Value
Type
The MIME type of the attachment (e.g., "image/jpeg", "video/mp4"). Optional.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyOrder(0)]
public string Type { get; set; }
Property Value
Url
The publicly accessible URL of the attachment.
[JsonPropertyOrder(1)]
public string Url { get; set; }