1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-23 12:18:48 +02:00
OpenIntegrations/docs/en/md/Slack/Message-management/Get-message-reply-list.mdx

112 lines
2.5 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 7
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# 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`
2024-10-15 15:15:47 +03:00
| 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 |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Slack
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
2024-11-22 11:50:42 +03:00
Timestamp = "1732262829.332919";
2024-10-15 10:16:04 +03:00
Result = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint slack GetMessageReplyList \
2024-10-22 08:59:24 +03:00
--token "***" \
--channel "C06UFNUTKUL" \
2024-11-22 15:16:03 +03:00
--stamp "1732275428.063399"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint slack GetMessageReplyList ^
2024-10-22 08:59:24 +03:00
--token "***" ^
--channel "C06UFNUTKUL" ^
2024-11-22 15:16:03 +03:00
--stamp "1732275428.063399"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```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
}
```