static void Main(string[] args) { bot.OnMessage += BotOnMessageReceived; var me = bot.GetMeAsync().Result; botStates = new Dictionary <int, State>(); usersInputs = new Dictionary <int, UserInput>(); dbManager = new DataBaseManager(); bot.StartReceiving(); Console.WriteLine($"Start listening to @{me.Nick}"); RunNotificationsSender(); // *** Testing DataBaseManager *** //var data = dbManager.GetData("Краснокамск", "Коммунальная"); //DEBUGPrintData(data); Console.ReadLine(); //остановка при нажатии Enter bot.StopReceiving(); }
public void StartReceiving() { bot.StartReceiving(); }