Pin message
Pins a message in the chat header
Function PinMessage(Val Token, Val ChatID, Val MessageID) Export
Parameter | CLI option | Type | Required | 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
tip
Method at API documentation: pinChatMessage
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";
MessageID = "10111";
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
- Bash
- CMD/Bat
oint telegram PinMessage \
--token "***" \
--chat "@testsichee" \
--message "10481"
oint telegram PinMessage ^
--token "***" ^
--chat "@testsichee" ^
--message "10481"
Result
{
"ok": true,
"result": true
}