Pin message
Pins a message in the chat header
- Parameters
- Advanced call ?
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
| 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: pinChatMessage
1C:Enterprise/OneScript code example
Token = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";
MessageID = "22536";
Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
- Bash
- CMD/Bat
oint telegram PinMessage \
--token "***" \
--chat "***" \
--message "27233"
oint telegram PinMessage ^
--token "***" ^
--chat "***" ^
--message "27233"
Result
{
"ok": true,
"result": true
}