Esempio n. 1
0
            private async Task SendGroupPrivacyChangeUpdate(Telegram telegramService, int selectedIndex)
            {
                IInputPrivacyKey key = new InputPrivacyKeyChatInvite();

                switch (selectedIndex)
                {
                case 0:
                    await SetPrivacyOptions(telegramService, key, new InputPrivacyValueAllowAll());

                    break;

                case 1:
                    await SetPrivacyOptions(telegramService, key, new InputPrivacyValueAllowContacts());

                    break;
                }
            }
Esempio n. 2
0
 private async Task SendGroupPrivacyChangeUpdate(Telegram telegramService, int selectedIndex)
 {
     IInputPrivacyKey key = new InputPrivacyKeyChatInvite();
     switch (selectedIndex)
     {
         case 0:
             await SetPrivacyOptions(telegramService, key, new InputPrivacyValueAllowAll());
             break;
         case 1:
             await SetPrivacyOptions(telegramService, key, new InputPrivacyValueAllowContacts());
             break;
     }
 }