Unpin message
Unpins a message in the chat header
- Parameters
- Advanced call ?
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
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete structure with fields code, body, and headers |
tip
Method at API documentation: unpinChatMessage
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";
MessageID = "22536";
Result = OPI_Telegram.UnpinMessage(Token, ChannelID, MessageID);
- Bash
- CMD/Bat
oint telegram UnpinMessage \
--token "***" \
--chat "***" \
--message "27233"
oint telegram UnpinMessage ^
--token "***" ^
--chat "***" ^
--message "27233"
Result
{
"ok": true,
"result": true
}