Reputation: 348
Is there a way to retrieve all messages with their replies in one request?
From what I read to retrieve replies of messages we need to make this request:
GET /teams/{id}/channels/{id}/messages/{id}/replies/{id}
But it does not seem efficient to read through every message and check if it has replies.
Upvotes: 1
Views: 1407
Reputation: 3591
We will get to this (hopefully by mid 2019) but it won't be via a per-message flag that tells you whether you need to make another call. Rather, we will support a $expand
parameter that will fetch a set of messages and their replies (likely within a specified time range or since a certain timestamp).
Upvotes: 3