Open forum thread
Reopens a previously closed forum thread
Function OpenForumThread(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
tip
Method at API documentation: reopenForumTopic
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "3896";
Result = OPI_Telegram.OpenForumThread(Token, Chat); // Opens main topic
Result = OPI_Telegram.OpenForumThread(Token, Chat, Topic);
- Bash
- CMD/Bat
oint telegram OpenForumThread \
--token "***" \
--forum "-1001971186208" \
--topic "6839"
oint telegram OpenForumThread ^
--token "***" ^
--forum "-1001971186208" ^
--topic "6839"
Result
{
"ok": true,
"result": true
}