1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-11 11:41:56 +02:00
Vitaly the Alpaca (bot) 5e0a08b5cd Main build (Jenkins)
2024-12-10 09:08:34 +03:00

69 lines
1.4 KiB
Plaintext

---
sidebar_position: 6
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Delete forum thread
Deletes a forum thread
`Function DeleteForumTopic(Val Token, Val ChatID, Val ThreadID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| ChatID | --forum | String, Number | ✔ | Thread chat ID |
| ThreadID | --topic | String, Number | ✔ | Thread ID |
Returns: Map Of KeyAndValue - serialized JSON response from Telegram
<br/>
:::tip
Method at API documentation: [deleteForumTopic](https://core.telegram.org/bots/api#deleteforumtopic)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "7201";
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint telegram DeleteForumTopic \
--token "***" \
--forum "-1001971186208" \
--topic "7245"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint telegram DeleteForumTopic ^
--token "***" ^
--forum "-1001971186208" ^
--topic "7245"
```
</TabItem>
</Tabs>
```json title="Result"
{
"ok": true,
"result": true
}
```