Skip to main content

Clear thread's pinned messages list

Clears the list of pinned messages in the forum thread

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

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
ChatID--forumString, NumberThread chat ID
ThreadID--topicString, NumberThread 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 = "3896";

Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat);

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