private void StartButton_Click(object sender, RoutedEventArgs e)
        {
            var aList = new ConnectionController().getScrappedAdresses(FilesIO.getStringFromFile("proxyListSite.txt", "E:\\"), "tbody /tr/td");

            /*
             * for (int i = 0; i < aList.Count; i++)
             * {
             *  Console.WriteLine($"Country: {aList[i].Country} \nAdress: {aList[i].ConnectionAdress} \nPort: {aList[i].Port}\n");
             * }*///TODO Check empty IP

            TelegramBotController telegram = new TelegramBotController(aList);

            telegram.connect();
        }
示例#2
0
        public static void SimpleTelegramBot()
        {
            var aList = new ConnectionController().getScrappedAdresses(FilesIO.getStringFromFile("proxyListSite.txt", "E:\\"), "tbody/tr/td");

            for (int i = 0; i < aList.Count; i++)
            {
                Console.WriteLine($"Country: {aList[i].Country} \nAdress: {aList[i].ConnectionAdress} \nPort: {aList[i].Port}\n");
            }

            TelegramBotController telegram = new TelegramBotController(aList);

            telegram.connect();

            Console.ReadLine();
        }