1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
Vitaly the Alpaca (bot) ab33d2f19d Main build (Jenkins)
2024-09-17 12:29:46 +03:00

1016 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     = FunctionParameters["Telegram_Token"];
    ChatID    = FunctionParameters["Telegram_ChannelID"];
    MessageID = FunctionParameters["Telegram_ChannelMessageID"];

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

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