1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-18 23:48:56 +02:00
OpenIntegrations/docs/en/md/VKTeams/Message-sending/Delete-message.md
2024-08-11 13:02:11 +03:00

39 lines
751 B
Markdown

---
sidebar_position: 4
---
# 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
<br/>
:::tip
Method at API documentation: [GET /messages/deleteMessages](https://teams.vk.com/botapi/#/messages/get_messages_deleteMessages)
:::
<br/>
```sh title="CLI command example"
oint vkteams DeleteMessage --token %token% --chatid %chatid% --messageid %messageid%
```