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

89 lines
2.0 KiB
Markdown
Raw Normal View History

---
sidebar_position: 7
---
# Get list of message replies
Gets an array of messages that are replies to the specified
2024-07-10 13:58:29 +03:00
`Function GetMessageReplyList(Val Token, Val Channel, Val Timestamp, Val Cursor = "") Export`
| Parameter | CLI option | Type | 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-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Slack
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-09-29 12:34:39 +03:00
Token = "xoxb-6965308400114-696804637...";
Channel = "C06UFNUTKUL";
2024-10-15 10:07:27 +03:00
Timestamp = "1728823163.597989";
2024-09-29 12:34:39 +03:00
Result = OPI_Slack.GetMessageReplyList(Token, Channel, Timestamp);
```
2024-10-15 09:53:37 +03:00
```json title="Result"
2024-08-14 09:06:31 +03:00
{
2024-10-06 16:55:08 +03:00
"ok": true,
"messages": [
{
2024-10-06 16:55:08 +03:00
"user": "U06UG1CAYH2",
"type": "message",
2024-10-09 09:42:00 +03:00
"ts": "1728454508.757479",
2024-10-06 16:55:08 +03:00
"edited": {
"user": "B06TZ0MJV5M",
2024-10-09 09:42:00 +03:00
"ts": "1728454510.000000"
2024-10-06 16:55:08 +03:00
},
"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",
2024-10-09 09:42:00 +03:00
"block_id": "kWY",
2024-10-06 16:55:08 +03:00
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "TestMessage2"
}
]
}
]
}
]
}
2024-10-06 16:55:08 +03:00
],
"has_more": false
}
```