1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-29 21:57:16 +02:00
Vitaly the Alpaca (bot) b4a9919e77 Main build (Jenkins)
2024-10-13 16:53:00 +03:00

1.0 KiB

sidebar_position
6

Get message link

Gets a permanent URL to the channel message

Function GetMessageLink(Val Token, Val Channel, Val Timestamp) Export

Parameter CLI option Type Description
Token --token String Bot token
Channel --channel String Channel ID
Timestamp --stamp String Timestamp or message ID

Returns: Map Of KeyAndValue - serialized JSON response from Slack


    Token     = "xoxb-6965308400114-696804637...";
    Channel   = "C06UFNUTKUL";
    Timestamp = "1728823163.597989";

    Result = OPI_Slack.GetMessageLink(Token, Channel, Timestamp);
    
  oint slack GetMessageLink --token %token% --channel "C070VPMKN8J" --stamp "1714146538.221929"

{
 "ok": true,
 "permalink": "https://openintegrationsgroup.slack.com/archives/C06UFNUTKUL/p1728454508757479",
 "channel": "C06UFNUTKUL"
}