telegram api constructor · layer 229 · #9852f9c6

documentAttributeAudio

Represents an audio file

definition

documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;

parameters

nametypedescription
flags#Flags, see TL conditional fields
voiceflags.10?trueWhether this is a voice message
durationintDuration in seconds
titleflags.0?stringName of song
performerflags.1?stringPerformer
waveformflags.2?bytesWaveform: consists in a series of bitpacked 5-bit values. Example implementation: android.

type

DocumentAttribute · other constructors: documentAttributeImageSize, documentAttributeAnimated, documentAttributeSticker, documentAttributeVideo, documentAttributeFilename, documentAttributeHasStickers, documentAttributeCustomEmoji

history

present in layers 23–229 · constructor id changed 2×

idlayers
#051448e523
#ded218e046
#9852f9c662–229