Skip to main content

Pin message

Pins a message in the chat header

Function PinMessage(Val Token, Val ChatID, Val MessageID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
ChatID--chatString, NumberTarget chat ID
MessageID--messageString, NumberTarget 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);
    oint telegram PinMessage \
--token "***" \
--chat "@testsichee" \
--message "10481"
Result
{
"ok": true,
"result": true
}