コード例 #1
0
        public void CancelCodeAsync(string phoneNumber, string phoneCodeHash, Action <bool> callback, Action <TLRPCError> faultCallback = null)
        {
            var obj = new TLAuthCancelCode {
                PhoneNumber = phoneNumber, PhoneCodeHash = phoneCodeHash
            };

            SendInformativeMessage("auth.cancelCode", obj, callback, faultCallback);
        }
コード例 #2
0
        public void CancelCodeAsync(string phoneNumber, string phoneCodeHash, Action <bool> callback, Action <TLRPCError> faultCallback = null)
        {
            var obj = new TLAuthCancelCode {
                PhoneNumber = phoneNumber, PhoneCodeHash = phoneCodeHash
            };

            const string caption = "auth.cancelCode";

            SendInformativeMessage(caption, obj, callback, faultCallback, flags: RequestFlag.FailOnServerError | RequestFlag.WithoutLogin);
        }