2024-08-13 12:24:12 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 7
|
|
|
|
---
|
|
|
|
|
|
|
|
# Resend voice
|
|
|
|
Sends a previously uploaded voice message by ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function ResendVoice(Val Token, Val ChatID, Val FileID) Export`
|
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
| 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 |
|
2024-08-13 12:24:12 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - Serialized JSON response from VK Teams
|
2024-08-13 12:24:12 +02:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
:::tip
|
|
|
|
Method at API documentation: [GET /messages/sendVoice](https://teams.vk.com/botapi/#/messages/get_messages_sendVoice)
|
|
|
|
:::
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
```bsl title="Code example"
|
|
|
|
Token = FunctionParameters["VkTeams_Token"];
|
|
|
|
ChatID = FunctionParameters["VkTeams_ChatID"];
|
|
|
|
FileID = FunctionParameters["VkTeams_VoiceID"];
|
|
|
|
|
|
|
|
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
|
|
|
|
```
|
|
|
|
|
2024-08-13 12:24:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 14:52:26 +02:00
|
|
|
|
|
|
|
oint vkteams ResendVoice --token %token% --chatid %chatid% --fileid %fileid%
|
2024-08-13 12:24:12 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
```json title="Result"
|
2024-08-13 12:24:12 +02:00
|
|
|
|
2024-08-13 14:52:26 +02:00
|
|
|
```
|