Skip to main content

Delete forum thread

Deletes a forum thread

Function DeleteForumTopic(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: deleteForumTopic


1C:Enterprise/OneScript code example
    Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "5796";

Result = OPI_Telegram.DeleteForumTopic(Token, Chat, Topic);
    oint telegram DeleteForumTopic \
--token "***" \
--forum "-1001971186208" \
--topic "6025"
Result
{
"ok": true,
"result": true
}