private async Task SetPrivacyOptions(Telegram telegramService, IInputPrivacyKey key, IInputPrivacyRule rule) { using (var client = new Telegram.FullClientDisposable(telegramService)) { await client.Client.Methods.AccountSetPrivacyAsync(new AccountSetPrivacyArgs { Key = key, Rules = new List <IInputPrivacyRule> { rule } }); } }
private async Task SetPrivacyOptions(Telegram telegramService, IInputPrivacyKey key, IInputPrivacyRule rule) { using (var client = new Telegram.FullClientDisposable(telegramService)) { await client.Client.Methods.AccountSetPrivacyAsync(new AccountSetPrivacyArgs { Key = key, Rules = new List<IInputPrivacyRule> { rule } }); } }