updateScheduledUserMessage method

Future<UserMessage> updateScheduledUserMessage(
  1. {required ScheduledUserMessageUpdateParams params,
  2. required int scheduledMessageId}
)

Update a scheduled user message with scheduledMessageId and ScheduledUserMessageUpdateParams.

Implementation

Future<UserMessage> updateScheduledUserMessage({
  required ScheduledUserMessageUpdateParams params,
  required int scheduledMessageId,
}) async {
  sbLog.i(StackTrace.current, 'scheduledMessageId: $scheduledMessageId');

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