sendMessage method

Future<XRPCResponse<MessageView>> sendMessage({
  1. required String convoId,
  2. required MessageInput message,
})

Implementation

Future<core.XRPCResponse<MessageView>> sendMessage({
  required String convoId,
  required MessageInput message,
}) async =>
    await _ctx.post(
      ns.chatBskyConvoSendMessage,
      body: {
        'convoId': convoId,
        'message': message.toJson(),
      },
      to: MessageView.fromJson,
    );