public TelegramBotPanel() { InitializeComponent(); Controlls.SSL(); BotStatus_ListBox.DrawMode = DrawMode.OwnerDrawFixed; BotStatus_ListBox.DrawItem += new DrawItemEventHandler(BotStatus_listBox_SetColor); }
static void Main(string[] args) { Controlls.SSL(); Controlls ctrl = new Controlls();//bot controller Console.WriteLine("Server Started "); while (true) { string last_index = ctrl.read_index(); T_result new_massage = ctrl.get_update(last_index); if (new_massage.result.Count > 0) { ctrl.responce(new_massage); ctrl.save_index(ctrl.get_update()); } } }