setCustomVerification method

Future<Result<Boolean>> setCustomVerification({
  1. required bool enabled,
  2. InputUserBase? bot,
  3. required InputPeerBase peer,
  4. String? customDescription,
})

Set Custom Verification.

ID: 8b89dfbd.

Implementation

Future<Result<Boolean>> setCustomVerification({
  required bool enabled,
  InputUserBase? bot,
  required InputPeerBase peer,
  String? customDescription,
}) async {
  // Preparing the request.
  final request = BotsSetCustomVerification(
    enabled: enabled,
    bot: bot,
    peer: peer,
    customDescription: customDescription,
  );

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

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