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) 622d9e5bf2 Main build (Jenkins)
2024-10-26 13:17:09 +03:00

70 lines
1.6 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="1C:Enterprise/OneScript code example"
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
FileID = "I000bVVnmK9NpQFMf78r9N6716b5f71bd";
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint vkteams ResendVoice \
--token "***" \
--chatid "AoLI0egLWBSLR1Ngn2w" \
--fileid "I000b4DGBDi9OhljmEfhjT671cac9c1bd"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint vkteams ResendVoice ^
--token "***" ^
--chatid "AoLI0egLWBSLR1Ngn2w" ^
--fileid "I000b4DGBDi9OhljmEfhjT671cac9c1bd"
```
</TabItem>
</Tabs>
```json title="Result"
{
"fileId": "I000bPC37Th9syNcxyaG4r670621651bd",
"msgId": "7423657774917093693",
"ok": true
}
```