From 84b0f5fe1b354dc8458c9139c8fe48d54a270019 Mon Sep 17 00:00:00 2001 From: CheshireCaat Date: Thu, 23 Jan 2020 07:02:19 +0300 Subject: [PATCH] Add methods for working with contacts. (#896) Added methods for working with contacts: * Import contact list * Delete contact list * Delete one contact --- TLSharp.Core/TelegramClient.cs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index ffc334c..d86b349 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -234,26 +234,6 @@ namespace TLSharp.Core return (T)result; } - public async Task UpdateUsernameAsync(string username) - { - if (!IsUserAuthorized()) - throw new InvalidOperationException("Authorize user first!"); - - var req = new TLRequestUpdateUsername { Username = username }; - - return await SendRequestAsync(req); - } - - public async Task CheckUsernameAsync(string username) - { - if (!IsUserAuthorized()) - throw new InvalidOperationException("Authorize user first!"); - - var req = new TLRequestCheckUsername { Username = username }; - - return await SendRequestAsync(req); - } - public async Task ImportContactsAsync(IReadOnlyList contacts) { if (!IsUserAuthorized())