1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 06:56:55 +01:00
MadelineProto/docs/TD_docs/constructors/inputMessageVoice.md
2017-07-23 16:11:02 +02: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, }