1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-23 02:06:12 +02:00
OpenIntegrations/docs/en/md/Telegram/Forum-topic-management/Delete-forum-topic.md

47 lines
940 B
Markdown
Raw Normal View History

---
sidebar_position: 6
---
# Delete forum thread
Deletes a forum thread
*Function DeleteForumTopic(Val Token, Val ChatID, Val ThreadID) ExportReturn ManageForumThreadState(Token, ChatID, 3, ThreadID);EndFunction*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| 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
```bsl title="Code example"
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "2673";
Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
```
```sh title="CLI command example"
oint telegram DeleteForumTopic --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --topic %topic%
```
```json title="Result"
{
"ok": true,
"result": true
}
```