Skip to main content

Resend voice

Sends a previously uploaded voice message by ID

Function ResendVoice(Val Token, Val ChatID, Val FileID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
ChatID--chatidString, NumberChat ID for sending
FileID--fileidString, NumberFile 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);
    oint vkteams ResendVoice \
--token "***" \
--chatid "AoLI0egLWBSLR1Ngn2w" \
--fileid "I000bN1voPcPeDTIYxPeN4674071431bd"
Result
{
"fileId": "I000bPC37Th9syNcxyaG4r670621651bd",
"msgId": "7423657774917093693",
"ok": true
}