1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +02:00

50 lines
993 B
Markdown
Raw Normal View History

---
sidebar_position: 4
---
# Close forum thread
Closes the thread for new messages
2024-07-10 13:58:29 +03:00
`Function CloseForumThread(Val Token, Val ChatID, Val ThreadID = "") Export`
| Parameter | CLI option | Type | 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
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "3896";
Result = OPI_Telegram.CloseForumThread(Token, Chat); // Closes main topic
Result = OPI_Telegram.CloseForumThread(Token, Chat, Topic);
```
```sh title="CLI command example"
oint telegram CloseForumThread --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --topic %topic%
```
```json title="Result"
2024-07-10 14:11:17 +03:00
{
"ok": true,
"result": true
}
```