sendTextMessage method

Future<void> sendTextMessage(
  1. String text, {
  2. Message? replay,
})

Implementation

Future<void> sendTextMessage(
  String text, {
  Message? replay,
}) async {
  if (await createThreadIfNotExits() == false) return;
  Message message = Message.createTxtSendMessage(
    targetId: thread!.threadId,
    content: text,
  );

  if (replay != null) {
    message.addQuote(replay);
  }

  sendMessage(message);
}