1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-24 05:36:29 +02:00
Vitaly the Alpaca (bot) 2741c109d2 Main build (Jenkins)
2024-10-06 21:51:35 +03:00

936 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 Description
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 = "9280";

    Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
    
  oint telegram DeleteMessage --token "6129457865:AAFyzNYOAFbu..." --chat "@testsichee" --message "6846"

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