1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-25 12:24:39 +02:00
OpenIntegrations/docs/en/md/Slack/Message-management/Get-message-reply-list.mdx
Vitaly the Alpaca (bot) f11b827c12 Main build (Jenkins)
2025-02-19 16:19:57 +03:00

112 lines
2.5 KiB
Plaintext
Vendored

---
sidebar_position: 7
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get list of message replies
Gets an array of messages that are replies to the specified
`Function GetMessageReplyList(Val Token, Val Channel, Val Timestamp, Val Cursor = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Bot token |
| Channel | --channel | String | ✔ | Channel ID |
| Timestamp | --stamp | String | ✔ | Timestamp or message ID |
| Cursor | --cursor | String | ✖ | Pointer from the previous request, if the result rows > 100 |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
Timestamp = "1739859675.178889";
Result = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint slack GetMessageReplyList \
--token "***" \
--channel "C06UFNUTKUL" \
--stamp "1739945047.405639"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint slack GetMessageReplyList ^
--token "***" ^
--channel "C06UFNUTKUL" ^
--stamp "1739945047.405639"
```
</TabItem>
</Tabs>
```json title="Result"
{
"ok": true,
"messages": [
{
"user": "U06UG1CAYH2",
"type": "message",
"ts": "1728454508.757479",
"edited": {
"user": "B06TZ0MJV5M",
"ts": "1728454510.000000"
},
"bot_id": "B06TZ0MJV5M",
"app_id": "A06TYNH45RV",
"text": "TestMessage2",
"team": "T06UD92BS3C",
"bot_profile": {
"id": "B06TZ0MJV5M",
"deleted": false,
"name": "OpenIntegrations",
"updated": 1713205238,
"app_id": "A06TYNH45RV",
"icons": {
"image_36": "https://a.slack-edge.com/80588/img/plugins/app/bot_36.png",
"image_48": "https://a.slack-edge.com/80588/img/plugins/app/bot_48.png",
"image_72": "https://a.slack-edge.com/80588/img/plugins/app/service_72.png"
},
"team_id": "T06UD92BS3C"
},
"blocks": [
{
"type": "rich_text",
"block_id": "kWY",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "TestMessage2"
}
]
}
]
}
]
}
],
"has_more": false
}
```