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

1.1 KiB

title description
inputMessageVoice Voice message

Constructor: inputMessageVoice

Back to constructors index

Voice message

Attributes:

Name Type Required Description
voice InputFile Yes Voice file to send
duration int Yes Duration of voice in seconds
waveform bytes Yes Waveform representation of the voice in 5-bit format
caption string Yes Voice caption, 0-200 characters

Type: InputMessageContent

Example:

$inputMessageVoice = ['_' => 'inputMessageVoice', 'voice' => InputFile, 'duration' => int, 'waveform' => 'bytes', 'caption' => 'string'];

PWRTelegram json-encoded version:

{"_": "inputMessageVoice", "voice": InputFile, "duration": int, "waveform": "bytes", "caption": "string"}

Or, if you're into Lua:

inputMessageVoice={_='inputMessageVoice', voice=InputFile, duration=int, waveform='bytes', caption='string'}