Delete message
Delete message from chat or channel
Function DeleteMessage(Val Token, Val ChatID, Val MessageID) Export
Parameter | CLI option | Type | Required | 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
tip
Method at API documentation: deleteMessage
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
ChatID = "@testsichee";
MessageID = "10111";
Result = OPI_Telegram.DeleteMessage(Token, ChatID, MessageID);
- Bash
- CMD/Bat
oint telegram DeleteMessage \
--token "***" \
--chat "@testsichee" \
--message "10481"
oint telegram DeleteMessage ^
--token "***" ^
--chat "@testsichee" ^
--message "10481"
Result
{
"ok": true,
"result": true
}