Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>DocumentAttributeAudio_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class DocumentAttributeAudio_
import { DocumentAttributeAudio_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Represents an audio file

Constructors

new
DocumentAttributeAudio_(params: { voice?: true; duration: number; title?: string; performer?: string; waveform?: Uint8Array; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
duration: number

Duration in seconds

optional
performer: string

Performer

optional
title: string

Name of song

optional
voice: true

Whether this is a voice message

optional
waveform: Uint8Array

Waveform: consists in a series of bitpacked 5-bit values.
Example implementation: android.

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc