Skip to main content

Unpin message

Unpins a message in the chat header

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

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
ChatID--chatString, NumberTarget chat ID
MessageID--messageString, NumberTarget message ID

Returns: Map Of KeyAndValue - serialized JSON response from Telegram


tip

Method at API documentation: unpinChatMessage


1C:Enterprise/OneScript code example
    Token     = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";
MessageID = "11768";

Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
    oint telegram UnpinMessage \
--token "***" \
--chat "@testsichee" \
--message "11844"
Result
{
"ok": true,
"result": true
}