1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-05 13:25:25 +02:00

44 lines
726 B
Markdown
Raw Normal View History

---
sidebar_position: 4
---
# Delete webhook
Deletes the bot event handler URL for webhook operation
2024-07-10 13:58:29 +03:00
`Function DeleteWebhook(Val Token) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Bot token |
Returns: Map Of KeyAndValue - Serialized JSON response from Telegram
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-08-13 16:37:03 +03:00
Token = "6129457865:AAFyzNYOAFbu...";
Result = OPI_Telegram.DeleteWebhook(Token);
```
```sh title="CLI command example"
oint telegram DeleteWebhook --token "6129457865:AAFyzNYOAFbu..."
```
```json title="Result"
2024-07-10 14:11:17 +03:00
{
"ok": true,
"result": true,
"description": "Webhook was deleted"
}
```