setCustomVerification method
Future<Result<Boolean> >
setCustomVerification({
- required bool enabled,
- InputUserBase? bot,
- required InputPeerBase peer,
- 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>();
}