public void SignInAsync(string phoneNumber, string phoneCodeHash, string phoneCode, Action <TLAuthAuthorization> callback, Action <TLRPCError> faultCallback = null) { var obj = new TLAuthSignIn { PhoneNumber = phoneNumber, PhoneCodeHash = phoneCodeHash, PhoneCode = phoneCode }; SendInformativeMessage <TLAuthAuthorization>("auth.signIn", obj, auth => { _cacheService.SyncUser(auth.User, result => { }); callback(auth); }, faultCallback); }
public void SignInAsync(string phoneNumber, string phoneCodeHash, string phoneCode, Action <TLAuthAuthorization> callback, Action <TLRPCError> faultCallback = null) { var obj = new TLAuthSignIn { PhoneNumber = phoneNumber, PhoneCodeHash = phoneCodeHash, PhoneCode = phoneCode }; const string caption = "auth.signIn"; SendInformativeMessage <TLAuthAuthorization>(caption, obj, auth => { _cacheService.SyncUser(auth.User, result => { }); callback(auth); }, faultCallback, flags: RequestFlag.FailOnServerError | RequestFlag.WithoutLogin); }