createScheduledUserMessage method

Future<UserMessage> createScheduledUserMessage(
  1. ScheduledUserMessageCreateParams params
)

Creates a user message to be sent at the specified time.

Implementation

Future<UserMessage> createScheduledUserMessage(
  ScheduledUserMessageCreateParams params,
) async {
  sbLog.i(StackTrace.current, 'message: ${params.message}');

  return await chat.apiClient.send(
    GroupChannelScheduledUserMessageSendRequest(
      chat,
      channelUrl: channelUrl,
      params: params,
    ),
  );
}