acceptUrlAuth method

Future<Result<UrlAuthResultBase>> acceptUrlAuth({
  1. required bool writeAllowed,
  2. required bool sharePhoneNumber,
  3. InputPeerBase? peer,
  4. int? msgId,
  5. int? buttonId,
  6. String? url,
  7. String? matchCode,
})

Accept Url Auth.

ID: 67a3f0de.

Implementation

Future<Result<UrlAuthResultBase>> acceptUrlAuth({
  required bool writeAllowed,
  required bool sharePhoneNumber,
  InputPeerBase? peer,
  int? msgId,
  int? buttonId,
  String? url,
  String? matchCode,
}) async {
  // Preparing the request.
  final request = MessagesAcceptUrlAuth(
    writeAllowed: writeAllowed,
    sharePhoneNumber: sharePhoneNumber,
    peer: peer,
    msgId: msgId,
    buttonId: buttonId,
    url: url,
    matchCode: matchCode,
  );

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

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