MadelineProtoDocs/old_docs/API_docs_v23/constructors/audio.md

1.1 KiB

title description image
audio Audio https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: audio

Back to constructors index

Audio

Attributes:

Name Type Required Description
id long Yes ID
access_hash long Yes Access hash
user_id int Yes User ID
date int Yes Date
duration int Yes Duration
mime_type string Yes Mime type
size int Yes Size
dc_id int Yes DC ID

Type: Audio

Example:

$audio = ['_' => 'audio', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'duration' => int, 'mime_type' => 'string', 'size' => int, 'dc_id' => int];

Or, if you're into Lua:

audio={_='audio', id=long, access_hash=long, user_id=int, date=int, duration=int, mime_type='string', size=int, dc_id=int}