Skip to main content

Clear topics pinned messages list

Clears the list of pinned messages in the forum topic

Function ClearTopicPinnedMessagesList(Val Token, Val ChatID, Val TopicID = "") Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
ChatID--forumString, NumberTopic chat ID
TopicID--topicString, NumberTopic ID. Main if not filled

Returns: Map Of KeyAndValue - serialized JSON response from Telegram


tip

Method at API documentation: unpinAllForumTopicMessages


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

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