1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-21 01:50:24 +02:00
OpenIntegrations/docs/en/md/VKTeams/Message-sending/Delete-message.md
2024-08-13 10:24:12 +00:00

998 B

sidebar_position
5

Delete message

Deletes a message by ID

Function DeleteMessage(Val Token, Val ChatID, Val MessageID) Export

Parameter CLI option Type Destination
Token --token String Bot token
ChatID --chatid String, Number Chat ID for message sending
MessageID --messageid String, Number Message ID for editing

Returns: Map Of KeyAndValue - Serialized JSON response from VK Teams


:::tip Method at API documentation: GET /messages/deleteMessages :::

 Token = "001.3501506236.091...";
 ChatID = "689203963@chat.agent";
 MessageID = "7402287649739767956";
 
 Result = OPI_VKTeams.DeleteMessage(Token, ChatID, MessageID);
 
 oint vkteams DeleteMessage --token %token% --chatid %chatid% --messageid %messageid%