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
tip
Method at API documentation: GET /messages/sendVoice
1C:Enterprise/OneScript code example
Token = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
FileID = "I000brYOlobGq76GXoZJwV6740419f1bd";
Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
- Bash
- CMD/Bat
oint vkteams ResendVoice \
--token "***" \
--chatid "AoLI0egLWBSLR1Ngn2w" \
--fileid "I000bN1voPcPeDTIYxPeN4674071431bd"
oint vkteams ResendVoice ^
--token "***" ^
--chatid "AoLI0egLWBSLR1Ngn2w" ^
--fileid "I000bN1voPcPeDTIYxPeN4674071431bd"
Result
{
"fileId": "I000bPC37Th9syNcxyaG4r670621651bd",
"msgId": "7423657774917093693",
"ok": true
}