private static void OnAdminCommandMessage(object sender, AdminMessageEventArgs args) { var command = args.Command; var messageId = args.CurrentPoll.MessageId; var chatId = args.Chat.Id; if (command == "admin_init") { try { _db.Disconnect(); DbCore.Initialization(); _db = new DbCore(); _commands = new CommandProcessor(_bot, _db); } catch (Exception e) { Console.WriteLine("Unknown DBCore exception: " + e.Message + "\n" + e.InnerException); } } }