acceptUrlAuth method
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>();
}