sendMessageBatch method

Future<XRPCResponse<SendMessageBatchOutput>> sendMessageBatch({
  1. required List<BatchItem> items,
  2. Map<String, String>? $unknown,
  3. Map<String, String>? $headers,
  4. PostClient? $client,
})

Implementation

Future<XRPCResponse<SendMessageBatchOutput>> sendMessageBatch({
  required List<BatchItem> items,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<SendMessageBatchOutput>(
      ns.chatBskyConvoSendMessageBatch,
      headers: $headers,
      body: {
        'items': items.map((e) => e.toJson()).toList(),
        ...?$unknown,
      },
      to: const SendMessageBatchOutputConverter().fromJson,
      client: $client,
    );