You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
48 lines
1011 B
Plaintext
48 lines
1011 B
Plaintext
---
|
|
sidebar_position: 5
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete message
|
|
Deletes a message by ID
|
|
|
|
|
|
|
|
`Function DeleteMessage(Val Token, Val ChatID, Val MessageID) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| 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/>
|
|
|
|
|
|
```bsl title="Code example"
|
|
Token = "001.3501506236.091...";
|
|
ChatID = "689203963@chat.agent";
|
|
MessageID = "7425684917876428136";
|
|
|
|
Result = OPI_VKTeams.DeleteMessage(Token, ChatID, MessageID);
|
|
```
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"ok": true
|
|
}
|
|
```
|