You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
70 lines
1.6 KiB
Plaintext
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 = "I000b4tVA3DQR3aAiuXcGI6713f76e1bd";
|
|
|
|
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint vkteams ResendVoice \
|
|
--token "***" \
|
|
--chatid "AoLI0egLWBSLR1Ngn2w" \
|
|
--fileid "I000bI9gFA8bvo7YLGLkZt67165fce1bd"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint vkteams ResendVoice ^
|
|
--token "***" ^
|
|
--chatid "AoLI0egLWBSLR1Ngn2w" ^
|
|
--fileid "I000bI9gFA8bvo7YLGLkZt67165fce1bd"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"fileId": "I000bPC37Th9syNcxyaG4r670621651bd",
|
|
"msgId": "7423657774917093693",
|
|
"ok": true
|
|
}
|
|
```
|