1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/VKTeams/Message-sending/Resend-voice.mdx
T
Vitaly the Alpaca (bot) 293c73c1f0 Main build (Jenkins)
2024-10-15 15:15:47 +03:00

50 lines
1.1 KiB
Plaintext

---
sidebar_position: 7
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Resend voice
Sends a previously uploaded voice message by ID
`Function ResendVoice(Val Token, Val ChatID, Val FileID) Export`
| Parameter | CLI option | Type | Required | 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 = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
FileID = "I000bzdU0pRaLPRFQ42mv6670d55531bd";
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
```
```json title="Result"
{
"fileId": "I000bPC37Th9syNcxyaG4r670621651bd",
"msgId": "7423657774917093693",
"ok": true
}
```