mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-03 13:22:19 +02:00
1.1 KiB
1.1 KiB
sidebar_position |
---|
4 |
Delete message
Deletes a channel message by timestamp
Function DeleteMessage(Val Token, Val Channel, Val Timestamp, Val IsDelayed = False) Export
Parameter | CLI option | Type | Description |
---|---|---|---|
Token | --token | String | Bot token |
Channel | --channel | String | Channel ID |
Timestamp | --stamp | String | Timestamp or message ID |
IsDelayed | --issheduled | Boolean | Indicator of deleting a delayed message |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
Timestamp = "1727627095.229429";
Result = OPI_Slack.DeleteMessage(Token, Channel, Timestamp);
oint slack DeleteMessage --token %token% --channel "C06UFNUTKUL" --stamp "1714146538.221929" --issheduled %issheduled%
{
"ok": true,
"channel": "C06UFNUTKUL",
"ts": "1728454508.757479"
}