Unpin message
Unpins a message in the chat header
Function UnpinMessage(Val Token, Val ChatID, Val MessageID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Bot 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: unpinChatMessage
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";
MessageID = "11768";
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
- Bash
- CMD/Bat
oint telegram UnpinMessage \
--token "***" \
--chat "@testsichee" \
--message "11844"
oint telegram UnpinMessage ^
--token "***" ^
--chat "@testsichee" ^
--message "11844"
Result
{
"ok": true,
"result": true
}