コード例 #1
0
        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();
        }
コード例 #2
0
 public void StartReceiving()
 {
     bot.StartReceiving();
 }