mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-18 23:48:56 +02:00
48 lines
1.0 KiB
Markdown
48 lines
1.0 KiB
Markdown
---
|
|
sidebar_position: 7
|
|
---
|
|
|
|
# Resend voice
|
|
Sends a previously uploaded voice message by ID
|
|
|
|
|
|
|
|
`Function ResendVoice(Val Token, Val ChatID, Val FileID) Export`
|
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|-|-|-|-|
|
|
| Token | --token | String | Bot token |
|
|
| ChatID | --chatid | String, Number | Chat ID for sending |
|
|
| FileID | --fileid | String, Number | File ID of voice message |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - Serialized JSON response from VK Teams
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [GET /messages/sendVoice](https://teams.vk.com/botapi/#/messages/get_messages_sendVoice)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```bsl title="Code example"
|
|
Token = FunctionParameters["VkTeams_Token"];
|
|
ChatID = FunctionParameters["VkTeams_ChatID"];
|
|
FileID = FunctionParameters["VkTeams_VoiceID"];
|
|
|
|
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
|
|
```
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
oint vkteams ResendVoice --token %token% --chatid %chatid% --fileid %fileid%
|
|
|
|
```
|
|
|
|
```json title="Result"
|
|
|
|
```
|