1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-18 23:48:56 +02:00
OpenIntegrations/docs/en/md/Telegram/Forum-topic-management/Clear-thread-pinned-messages-list.md

51 lines
1.1 KiB
Markdown
Raw Normal View History

---
sidebar_position: 10
---
# 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*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Token |
| ChatID | --forum | String, Number | Thread chat ID |
| ThreadID | --topic | String, Number | Thread ID. Main if not filled |
Returns: Key-Value Pair - Serialized JSON response from Telegram
```bsl title="Code example"
Token = "6129457865:AAFyzNYOAFbu...";
Chat = "-1001971186208";
Topic = "2673";
Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat);
OPI_TestDataRetrieval.WriteLog(Result, "ClearPinnedMessagesList (main)");
Result = OPI_Telegram.ClearThreadPinnedMessagesList(Token, Chat, Topic);
```
```sh title="CLI command example"
oint telegram ClearThreadPinnedMessagesList --token "6129457865:AAFyzNYOAFbu..." --forum %forum% --topic %topic%
```
```json title="Result"
{
"ok": true,
"result": true
}
```