getMessagesById method

Future<GetMessagesByIdResponse> getMessagesById (
  1. List<String> messageIDs
)

Retrieves a list of messages by ID

Implementation

Future<GetMessagesByIdResponse> getMessagesById(
    List<String> messageIDs) async {
  final response = await _client.get(
    '$_channelURL/messages',
    queryParameters: {'ids': messageIDs.join(',')},
  );
  return _client.decode<GetMessagesByIdResponse>(
      response.data, GetMessagesByIdResponse.fromJson);
}