Ejemplo n.º 1
0
        public async Task <TLContacts> GetContactsAsync(CancellationToken token = default(CancellationToken))
        {
            var req = new TLRequestGetContacts()
            {
                Hash = ""
            };

            return(await SendAuthenticatedRequestAsync <TLContacts>(req, token)
                   .ConfigureAwait(false));
        }
Ejemplo n.º 2
0
        public async Task <TLContacts> GetContactsAsync()
        {
            if (!IsUserAuthorized())
            {
                throw new InvalidOperationException("Authorize user first!");
            }

            var req = new TLRequestGetContacts()
            {
            };

            return(await SendRequestAsync <TLContacts>(req));
        }
Ejemplo n.º 3
0
        public async Task <TLContacts> GetContactsAsync(CancellationToken token = default(CancellationToken))
        {
            if (!IsUserAuthorized())
            {
                throw new InvalidOperationException("Authorize user first!");
            }

            var req = new TLRequestGetContacts()
            {
                Hash = ""
            };

            return(await SendRequestAsync <TLContacts>(req, token).ConfigureAwait(false));
        }