Interface APIAttachment

Hierarchy

  • APIAttachment

Properties

content_type?: string

The attachment's media type

See https://en.wikipedia.org/wiki/Media_type

description?: string

Description for the file

duration_secs?: number

The duration of the audio file (currently for voice messages)

ephemeral?: boolean

Whether this attachment is ephemeral

filename: string

Name of file attached

flags?: IsRemix

Attachment flags combined as a bitfield

height?: null | number

Height of file (if image)

id: string

Attachment id

proxy_url: string

A proxied url of file

size: number

Size of file in bytes

title?: string

The title of the file

url: string

Source url of file

waveform?: string

Base64 encoded bytearray representing a sampled waveform (currently for voice messages)

width?: null | number

Width of file (if image)

Generated using TypeDoc