Skip to main content

documentAttributeAudio

Represents an audio file

type tg.DocumentAttributeAudio struct { /* ... */ }

Implements DocumentAttribute.

Fields​

NameTypeRequiredDescription
Voicebool—Whether this is a voice message
DurationintyesDuration in seconds
Titlestring—Name of song
Performerstring—Performer
Waveform[]byte—Waveform: consists in a series of bitpacked 5-bit values. Example implementation: android.

References​