Delete webhook
Deletes the bot event handler URL for webhook operation
- Parameters
- Advanced call ?
Function DeleteWebhook(Val Token) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Bot token |
Returns
Map Of KeyAndValue - serialized JSON response from Telegram
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete structure with fields code, body, and headers |
tip
Method at API documentation: deleteWebhook
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
Result = OPI_Telegram.DeleteWebhook(Token);
- Bash
- CMD/Bat
oint telegram DeleteWebhook \
--token "***"
oint telegram DeleteWebhook ^
--token "***"
Result
{
"ok": true,
"result": true,
"description": "Webhook was deleted"
}