1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-31 23:20:02 +02:00
Vitaly the Alpaca (bot) c93e84e6d1 Main build (Jenkins)
2024-09-29 19:41:20 +03:00

1.0 KiB

sidebar_position
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 = "1727627095.229429";

    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/p1714146538221929",
  "channel": "C06UFNUTKUL"
  }