You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
74 lines
1.9 KiB
Plaintext
Vendored
74 lines
1.9 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 10
|
|
description: Clear thread's pinned messages list and other functions to work with Telegram in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Telegram]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# 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 | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| ChatID | --forum | String, Number | ✔ | Thread chat ID |
|
|
| ThreadID | --topic | String, Number | ✖ | Thread ID. Main if not filled |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Telegram
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [unpinAllForumTopicMessages](https://core.telegram.org/bots/api#unpinallforumtopicmessages)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="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);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint telegram ClearThreadPinnedMessagesList \
|
|
--token "***" \
|
|
--forum "-1001971186208" \
|
|
--topic "10721"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint telegram ClearThreadPinnedMessagesList ^
|
|
--token "***" ^
|
|
--forum "-1001971186208" ^
|
|
--topic "10721"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"ok": true,
|
|
"result": true
|
|
}
|
|
```
|