1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-13 11:50:53 +02:00

70 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 6
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Delete forum thread
Deletes a forum thread
`Function DeleteForumTopic(Val Token, Val ChatID, Val ThreadID) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| ChatID | --forum | String, Number | ✔ | Thread chat ID |
| ThreadID | --topic | String, Number | ✔ | Thread ID |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Telegram
<br/>
:::tip
2024-11-21 13:27:18 +03:00
Method at API documentation: [deleteForumTopic](https://core.telegram.org/bots/api#deleteforumtopic)
2024-10-15 10:16:04 +03:00
:::
<br/>
2024-12-16 19:38:57 +03:00
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
2025-01-25 22:35:43 +03:00
Topic = "8081";
2024-10-15 10:16:04 +03:00
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint telegram DeleteForumTopic \
2024-10-22 08:59:24 +03:00
--token "***" \
--forum "-1001971186208" \
2025-01-10 12:07:46 +03:00
--topic "7784"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint telegram DeleteForumTopic ^
2024-10-22 08:59:24 +03:00
--token "***" ^
--forum "-1001971186208" ^
2025-01-10 12:07:46 +03:00
--topic "7784"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"ok": true,
"result": true
}
```