mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-21 01:50:24 +02:00
907 B
907 B
sidebar_position |
---|
7 |
Delete message
Delete message from chat or channel
Function DeleteMessage(Val Token, Val ChatID, Val MessageID) Export
Parameter | CLI option | Type | Destination |
---|---|---|---|
Token | --token | String | Token |
ChatID | --chat | String, Number | Target chat ID |
MessageID | --message | String, Number | ID of message to delete |
Returns: Map Of KeyAndValue - Serialized JSON response from Telegram
Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "@testsichee";
MessageID = "6846";
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
oint telegram DeleteMessage --token "6129457865:AAFyzNYOAFbu..." --chat "@testsichee" --message "5385"
{
"ok": true,
"result": true
}