cancelScheduledMessage method

Future<void> cancelScheduledMessage(
  1. {required int scheduledMessageId}
)

Cancels a scheduled message with scheduledMessageId.

Implementation

Future<void> cancelScheduledMessage({
  required int scheduledMessageId,
}) async {
  sbLog.i(StackTrace.current, 'scheduledMessageId: $scheduledMessageId');

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