sendUserMessageWithText method

UserMessage sendUserMessageWithText(
  1. String text,
  2. {UserMessageHandler? handler}
)

Sends a user message with text.

Implementation

UserMessage sendUserMessageWithText(
  String text, {
  UserMessageHandler? handler,
}) {
  sbLog.i(StackTrace.current, 'text: $text');
  checkUnsupportedAction();

  final params = UserMessageCreateParams(message: text);
  return sendUserMessage(
    params,
    handler: handler,
  );
}