DocumentAttributeAudio
- class pyrogram.raw.types.DocumentAttributeAudio
Represents an audio file
Constructor of
DocumentAttribute.- Details:
Layer:
223ID:
9852F9C6
- Parameters:
duration (
int32-bit) – Duration in secondsvoice (
bool, optional) – Whether this is a voice messagetitle (
str, optional) – Name of songperformer (
str, optional) – Performerwaveform (
bytes, optional) – Waveform: consists in a series of bitpacked 5-bit values. Example implementation: android.
TL Schema
documentAttributeAudio#9852f9c6
flags:#
voice:flags.10?true
duration:int
title:flags.0?string
performer:flags.1?string
waveform:flags.2?bytes
= DocumentAttribute
Parameter Tree
DocumentAttributeAudio
├── voice →
true (optional)├── duration →
int├── title →
string (optional)├── performer →
string (optional)└── waveform →
bytes (optional)Example
DocumentAttributeAudio(
duration=0,
)