MadelineProto/docs/TD_docs/constructors/inputMessageAudio.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.5 KiB

title description
inputMessageAudio Audio message

Constructor: inputMessageAudio

Back to constructors index

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'}