documentAttributeAudio
Represents an audio file
type tg.DocumentAttributeAudio struct { /* ... */ }
Implements DocumentAttribute.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Voice | bool | — | Whether this is a voice message |
Duration | int | yes | Duration in seconds |
Title | string | — | Name of song |
Performer | string | — | Performer |
Waveform | []byte | — | Waveform: consists in a series of bitpacked 5-bit values. Example implementation: android. |
References
- Official documentation
- Generated Go reference
- TL definition:
documentAttributeAudio#9852f9c6