1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 05:36:56 +01:00
MadelineProto/docs/TD_docs/constructors/inputMessageVoice.md

966 B

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, ];

Or, if you're into Lua:

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