1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
Vitaly the Alpaca (bot) d2f88b4a8e Main build (Jenkins)
2024-09-29 17:35:23 +03:00

916 B

sidebar_position
4

Pin message

Pins a message in the chat header

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

Parameter CLI option Type 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


    Token     = "6129457865:AAFyzNYOAFbu...";
    ChannelID = "@testsichee";
    MessageID = "9001";

    Result = OPI_Telegram.PinMessage(Token, ChannelID, MessageID);
    
  oint telegram PinMessage --token "6129457865:AAFyzNYOAFbu..." --chat %chat% --message "6846"

{
  "ok": true,
  "result": true
  }