1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-28 05:46:35 +02:00

48 lines
916 B
Markdown
Raw Normal View History

---
sidebar_position: 4
---
# Pin message
Pins a message in the chat header
2024-07-10 13:58:29 +03:00
`Function PinMessage(Val Token, Val ChatID, Val MessageID) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| ChatID | --chat | String, Number | Target chat ID |
| MessageID | --message | String, Number | Target message ID |
Returns: Map Of KeyAndValue - Serialized JSON response from Telegram
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-08-13 16:47:32 +03:00
Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";
MessageID = "6846";
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
```
```sh title="CLI command example"
oint telegram PinMessage --token "6129457865:AAFyzNYOAFbu..." --chat %chat% --message "6846"
```
```json title="Result"
2024-07-10 14:11:17 +03:00
{
"ok": true,
"result": true
}
```