예제 #1
0
 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
             }
         });
     }
 }
예제 #2
0
 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
             }
         });
     }
 }