acceptUrlAuth method
Future<Result<UrlAuthResultBase> >
acceptUrlAuth({
- required bool writeAllowed,
- InputPeerBase? peer,
- int? msgId,
- int? buttonId,
- String? url,
Accept Url Auth.
ID: b12c7125
.
Implementation
Future<Result<UrlAuthResultBase>> acceptUrlAuth({
required bool writeAllowed,
InputPeerBase? peer,
int? msgId,
int? buttonId,
String? url,
}) async {
// Preparing the request.
final request = MessagesAcceptUrlAuth(
writeAllowed: writeAllowed,
peer: peer,
msgId: msgId,
buttonId: buttonId,
url: url,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UrlAuthResultBase>();
}