mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 18:06:55 +01:00
1.5 KiB
1.5 KiB
title | description |
---|---|
inputMessageAudio | Audio message |
Constructor: inputMessageAudio
Audio message
Attributes:
Name | Type | Required | Description |
---|---|---|---|
audio | InputFile | Yes | Audio file to send |
album_cover_thumb | InputThumb | Yes | Thumb of the album's cover, if available |
duration | int | Yes | Duration of audio in seconds, may be replaced by the server |
title | string | Yes | Title of the audio, 0-64 characters, may be replaced by the server |
performer | string | Yes | Performer of the audio, 0-64 characters, may be replaced by the server |
caption | string | Yes | Audio caption, 0-200 characters |
Type: InputMessageContent
Example:
$inputMessageAudio = ['_' => 'inputMessageAudio', 'audio' => InputFile, 'album_cover_thumb' => InputThumb, 'duration' => int, 'title' => string, 'performer' => string, 'caption' => string, ];
PWRTelegram json-encoded version:
{"_":"inputMessageAudio","audio":"InputFile","album_cover_thumb":"InputThumb","duration":"int","title":"string","performer":"string","caption":"string"}
Or, if you're into Lua:
inputMessageAudio={_='inputMessageAudio', audio=InputFile, album_cover_thumb=InputThumb, duration=int, title=string, performer=string, caption=string, }