updateScheduledFileMessage method

Future<FileMessage> updateScheduledFileMessage(
  1. {required ScheduledFileMessageUpdateParams params,
  2. required int scheduledMessageId}
)

Update a scheduled file message with scheduledMessageId and ScheduledFileMessageUpdateParams.

Implementation

Future<FileMessage> updateScheduledFileMessage({
  required ScheduledFileMessageUpdateParams params,
  required int scheduledMessageId,
}) async {
  sbLog.i(StackTrace.current, 'scheduledMessageId: $scheduledMessageId');

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