mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 04:36:57 +01:00
41 lines
966 B
Markdown
41 lines
966 B
Markdown
|
---
|
||
|
title: inputMessageVoice
|
||
|
description: Voice message
|
||
|
---
|
||
|
## Constructor: inputMessageVoice
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
Voice message
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|:-------------:|:--------:|------------:|
|
||
|
|voice|[InputFile](../types/InputFile.md) | Yes|Voice file to send|
|
||
|
|duration|[int](../types/int.md) | Yes|Duration of voice in seconds|
|
||
|
|waveform|[bytes](../types/bytes.md) | Yes|Waveform representation of the voice in 5-bit format|
|
||
|
|caption|[string](../types/string.md) | Yes|Voice caption, 0-200 characters|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [InputMessageContent](../types/InputMessageContent.md)
|
||
|
|
||
|
|
||
|
### 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, }
|
||
|
|
||
|
```
|
||
|
|
||
|
|