mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-23 02:06:12 +02:00
896 B
896 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 = "5385";
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
oint telegram DeleteMessage --token "6129457865:AAFyzNYOAFbu..." --chat "@testsichee" --message "5385"
{
"ok": true,
"result": true
}