sendTextMessage method
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);
}