getScheduledMessage static method

Future<BaseMessage> getScheduledMessage(
  1. ScheduledMessageRetrievalParams params,
  2. {Chat? chat}
)

Retrieves a BaseMessage object with a specified scheduled message ID.

Implementation

static Future<BaseMessage> getScheduledMessage(
  ScheduledMessageRetrievalParams params, {
  Chat? chat,
}) async {
  sbLog.i(StackTrace.current,
      'params.scheduledMessageId: ${params.scheduledMessageId}');
  chat ??= SendbirdChat().chat;

  return await chat.apiClient.send<BaseMessage>(
    GroupChannelScheduledMessageGetRequest(chat, params: params),
  );
}