--- sidebar_position: 4 description: Delete webhook and other functions to work with Telegram in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Telegram] --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Delete webhook Deletes the bot event handler URL for webhook operation `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
:::tip Method at API documentation: [deleteWebhook](https://core.telegram.org/bots/api#deletewebhook) :::
```bsl title="1C:Enterprise/OneScript code example" Token = "6129457865:AAFyzNYOAFbu..."; Result = OPI_Telegram.DeleteWebhook(Token); ``` ```bash oint telegram DeleteWebhook \ --token "***" ``` ```batch oint telegram DeleteWebhook ^ --token "***" ``` ```json title="Result" { "ok": true, "result": true, "description": "Webhook was deleted" } ```