1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-07 15:20:39 +02:00
2024-06-05 13:35:05 +03:00

1.0 KiB

sidebar_position
5

Open forum thread

Reopens a previously closed forum thread

Function OpenForumThread(Val Token, Val ChatID, Val ThreadID = "") ExportReturn ManageForumThreadState(Token, ChatID, 1, 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: Key-Value Pair - Serialized JSON response from Telegram

	
 Token = "6129457865:AAFyzNYOAFbu...";
 Chat = "-1001971186208";
 Topic = "2673";
 
 Result = OPI_Telegram.OpenForumThread(Token, Chat); // Opens main topic
 Result = OPI_Telegram.OpenForumThread(Token, Chat, Topic);
 
	
 
 oint telegram OpenForumThread --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --topic %topic%



{
 "ok": true,
 "result": true
}