updateScheduledFileMessage method
Future<ScheduledFileMessage>
updateScheduledFileMessage({
- required ScheduledFileMessageUpdateParams params,
- required int scheduledMessageid,
- OnScheduledMessageCallback<
ScheduledFileMessage> ? callback,
Update scheduled file message
Implementation
Future<ScheduledFileMessage> updateScheduledFileMessage({
required ScheduledFileMessageUpdateParams params,
required int scheduledMessageid,
OnScheduledMessageCallback<ScheduledFileMessage>? callback,
}) async {
try {
final result = await _sdk.api.send(
GroupChannelScheduledFileMessageUpdateRequest(
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;
}
}