Пример #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;
                }
            }
Пример #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;
     }
 }