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; } }