2024-08-13 10:24:12 +00: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 15:52:26 +03: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 10:24:12 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - Serialized JSON response from VK Teams
|
2024-08-13 10:24:12 +00:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
:::tip
|
|
|
|
Method at API documentation: [GET /messages/sendVoice](https://teams.vk.com/botapi/#/messages/get_messages_sendVoice)
|
|
|
|
:::
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
```bsl title="Code example"
|
2024-08-13 16:47:32 +03:00
|
|
|
Token = "001.3501506236.091...";
|
|
|
|
ChatID = "AoLI0egLWBSLR1Ngn2w";
|
2024-08-20 13:11:21 +03:00
|
|
|
FileID = "I000bjtJLQKLCNZ1ZJLGGY66c340b41bd";
|
2024-08-13 16:47:32 +03:00
|
|
|
|
|
|
|
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
|
2024-08-13 15:52:26 +03:00
|
|
|
```
|
|
|
|
|
2024-08-13 10:24:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
oint vkteams ResendVoice --token %token% --chatid %chatid% --fileid %fileid%
|
2024-08-13 10:24:12 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
```json title="Result"
|
2024-08-14 09:06:31 +03:00
|
|
|
{
|
|
|
|
"fileId": "I000be4KKMDOLDbYUqPbXs66bb96bd1bd",
|
|
|
|
"msgId": "7402676176776331485",
|
|
|
|
"ok": true
|
|
|
|
}
|
2024-08-13 15:52:26 +03:00
|
|
|
```
|