sendTextMessage method

Future<ChatMessage?> sendTextMessage({
  1. required String text,
})

Send text message

Implementation

Future<ChatMessage?> sendTextMessage({
  required String text,
}) async {
  final result = (await _chatApi.chatRoomsMessagesCreate(
    roomId: roomId,
    chatMessageRequest: ChatMessageRequest(
      message: text,
    ),
  ))
      .data;

  return result;
}