Пример #1
0
        private void warning_log(string Error)
        {
            string Log_string = "ERROR: " + "\t" +
                                DateTime.Now.ToShortDateString() + "   " +
                                DateTime.Now.ToLongTimeString() + "   " +
                                Error;

            BotStatus_ListBox.Invoke((Action)(() => BotStatus_ListBox.Items.Insert(0, Log_string)));
        }
Пример #2
0
        private void Data_log(Update item)
        {
            message message    = item.message;
            string  Log_String = DateTime.Now.ToShortDateString() + "   " +
                                 DateTime.Now.ToLongTimeString() + "   " +
                                 " USER: "******" " + message.from.last_name?.ToString() + "( @" + message.from.username?.ToString() + " )" + "   " +
                                 message.text.ToString();

            BotStatus_ListBox.Invoke((Action)(() => BotStatus_ListBox.Items.Insert(0, Log_String)));
        }