Raw.DocumentAttributeAudio
Represents an audio file
documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;export namespace Raw {
export class DocumentAttributeAudio {
constructor(params: {
voice?: boolean;
duration: number;
title?: string;
performer?: string;
waveform?: Buffer;
}) {}
}
}🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 201
Constructor ID: 0x9852f9c6
Property
voice: boolean or undefinedWhether this is a voice message
duration: numberDuration in seconds
title: string or undefinedName of song
performer: string or undefinedPerformer
waveform: Buffer or undefinedWaveform: consists in a series of bitpacked 5-bit values. example implementation: android.