public void SendCodeAsync(TLString phoneNumber, TLSmsType smsType, Action <TLSentCodeBase> callback, Action <int> attemptFailed = null, Action <TLRPCError> faultCallback = null) { var obj = new TLSendCode { PhoneNumber = phoneNumber, SmsType = smsType, ApiId = new TLInt(Constants.ApiId), ApiHash = new TLString(Constants.ApiHash), LangCode = new TLString(Utils.CurrentUICulture()) }; SendInformativeMessage("auth.sendCode", obj, callback, faultCallback, 3); }
public void SendCodeAsync(TLString phoneNumber, TLString currentNumber, Action <TLSentCodeBase> callback, Action <int> attemptFailed = null, Action <TLRPCError> faultCallback = null) { var obj = new TLSendCode { Flags = new TLInt(0), PhoneNumber = phoneNumber, CurrentNumber = currentNumber, ApiId = new TLInt(Constants.ApiId), ApiHash = new TLString(Constants.ApiHash) }; SendInformativeMessage("auth.sendCode", obj, callback, faultCallback, 3); }