Clear topics pinned messages list
Clears the list of pinned messages in the forum topic
Function ClearTopicPinnedMessagesList(Val Token, Val ChatID, Val TopicID = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
ChatID | --forum | String, Number | ✔ | Topic chat ID |
TopicID | --topic | String, Number | ✖ | Topic 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);
- Bash
- CMD/Bat
oint telegram ClearTopicPinnedMessagesList \
--token "***" \
--forum "-1001971186208"
oint telegram ClearTopicPinnedMessagesList ^
--token "***" ^
--forum "-1001971186208"
Result
{
"ok": true,
"result": true
}