Skip to main content

Delete webhook

Deletes the bot event handler URL for webhook operation

Function DeleteWebhook(Val Token) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token

Returns: Map Of KeyAndValue - serialized JSON response from Telegram


tip

Method at API documentation: deleteWebhook


1C:Enterprise/OneScript code example
    Token  = "6129457865:AAFyzNYOAFbu...";
Result = OPI_Telegram.DeleteWebhook(Token);
    oint telegram DeleteWebhook \
--token "***"
Result
{
"ok": true,
"result": true,
"description": "Webhook was deleted"
}