Skip to main content

Resend voice

Sends a previously uploaded voice message by ID

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

ParameterCLI optionTypeDescription
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


Code example
    Token  = "001.3501506236.091...";
ChatID = "AoLI0egLWBSLR1Ngn2w";
FileID = "I000btK8FycYcNj36ktHPY66cb1e821bd";

Result = OPI_VKTeams.ResendVoice(Token, ChatID, FileID);
CLI command example
    
oint vkteams ResendVoice --token %token% --chatid %chatid% --fileid %fileid%

Result
{
"fileId": "I000be4KKMDOLDbYUqPbXs66bb96bd1bd",
"msgId": "7402676176776331485",
"ok": true
}