Skip to main content

Close forum thread

Closes the thread for new messages

Function CloseForumThread(Val Token, Val ChatID, Val ThreadID = "") Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
ChatID--forumString, NumberThread chat ID
ThreadID--topicString, NumberThread ID

Returns: Map Of KeyAndValue - serialized JSON response from Telegram


tip

Method at API documentation: closeForumTopic


1C:Enterprise/OneScript 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);
    oint telegram CloseForumThread \
--token "***" \
--forum "-1001971186208" \
--topic "6839"
Result
{
"ok": true,
"result": true
}