updateScheduledUserMessage method
Future<ScheduledUserMessage>
updateScheduledUserMessage({
- required ScheduledUserMessageUpdateParams params,
- required int scheduledMessageid,
- OnScheduledMessageCallback<
ScheduledUserMessage> ? callback,
Update scheduled user message
Implementation
Future<ScheduledUserMessage> updateScheduledUserMessage({
required ScheduledUserMessageUpdateParams params,
required int scheduledMessageid,
OnScheduledMessageCallback<ScheduledUserMessage>? callback,
}) async {
try {
final result = await _sdk.api.send(
GroupChannelScheduledUserMessageUpdateRequest(
scheduledMessageId: scheduledMessageid,
channelUrl: channelUrl,
params: params,
),
);
if (callback != null) {
callback(result, null);
}
return result;
} catch (e) {
if (callback != null) {
final error = SBError(message: 'Failed Sending Request');
callback(null, error);
}
rethrow;
}
}