mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-02 03:38:55 +02:00
44 lines
791 B
Markdown
44 lines
791 B
Markdown
|
---
|
||
|
sidebar_position: 7
|
||
|
---
|
||
|
|
||
|
# Hide main forum thread
|
||
|
Hides the main forum thread
|
||
|
|
||
|
|
||
|
*Function HideMainForumTopic(Val Token, Val ChatID) ExportReturn ManageMainTopicVisibility(Token, ChatID, True);EndFunction*
|
||
|
|
||
|
| Parameter | CLI option | Type | Destination |
|
||
|
|-|-|-|-|
|
||
|
| Token | --token | String | Token |
|
||
|
| ChatID | --forum | String, Number | Thread chat ID |
|
||
|
|
||
|
|
||
|
Returns: Key-Value Pair - Serialized JSON response from Telegram
|
||
|
|
||
|
```bsl title="Code example"
|
||
|
|
||
|
Token = "6129457865:AAFyzNYOAFbu...";
|
||
|
Chat = "-1001971186208";
|
||
|
|
||
|
Result = OPI_Telegram.HideMainForumTopic(Token, Chat);
|
||
|
|
||
|
|
||
|
```
|
||
|
|
||
|
```sh title="CLI command example"
|
||
|
|
||
|
oint telegram HideMainForumTopic --token "6129457865:AAFyzNYOAFbu..." --forum %forum%
|
||
|
|
||
|
```
|
||
|
|
||
|
|
||
|
```json title="Result"
|
||
|
|
||
|
{
|
||
|
"ok": true,
|
||
|
"result": true
|
||
|
}
|
||
|
|
||
|
```
|