Layer 227
constructor
documentAttributeAudio#051448e5 duration:int = DocumentAttribute;

Parameters

Name Type Description
Voice flags .10? true Whether this is a voice message
Duration int Duration in seconds
Title flags .0? string Name of song
Performer flags .1? string Performer
Waveform flags .2? bytes Waveform: consists in a series of bitpacked 5-bit values. Example implementation: android.

Gogram Example

// Creating DocumentAttributeAudio constructor
obj := &tg.DocumentAttributeAudio{
    Voice: nil,
    Duration: 42,
    Title: "Hello, World!",
    Performer: "Hello, World!",
    Waveform: nil,
}