1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-16 11:38:11 +02:00
OpenIntegrations/docs/en/md/Telegram/Administration/Delete-message.md
2024-07-10 14:33:00 +03:00

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 = "5385";
 
 Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
 
 oint telegram DeleteMessage --token "6129457865:AAFyzNYOAFbu..." --chat "@testsichee" --message "5385"

{
 "ok": true,
 "result": true
}