mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 01:26:56 +01:00
1.1 KiB
1.1 KiB
title | description |
---|---|
inputMessageVoice | Voice message |
Constructor: inputMessageVoice
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'}