mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-03 13:22:19 +02:00
45 lines
754 B
Plaintext
45 lines
754 B
Plaintext
---
|
|
sidebar_position: 4
|
|
---
|
|
|
|
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 | Description |
|
|
|-|-|-|-|
|
|
| Token | --token | String | Bot token |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Telegram
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [deleteWebhook](https://core.telegram.org/bots/api#deletewebhook)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```bsl title="Code example"
|
|
Token = "6129457865:AAFyzNYOAFbu...";
|
|
Result = OPI_Telegram.DeleteWebhook(Token);
|
|
```
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"ok": true,
|
|
"result": true,
|
|
"description": "Webhook was deleted"
|
|
}
|
|
```
|