updateNotifySettings method

Future<Result<Boolean>> updateNotifySettings({
  1. required InputNotifyPeerBase peer,
  2. required InputPeerNotifySettingsBase settings,
})

Update Notify Settings.

ID: 84be5b93.

Implementation

Future<Result<Boolean>> updateNotifySettings({
  required InputNotifyPeerBase peer,
  required InputPeerNotifySettingsBase settings,
}) async {
  // Preparing the request.
  final request = AccountUpdateNotifySettings(
    peer: peer,
    settings: settings,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}