Exemplo n.º 1
0
 static void Main(string[] args)
 {
     T();
     Console.WriteLine("Press 1 to start TeleBot");
     Console.WriteLine("Press 2 to see user logs");
     if (Convert.ToInt32(Console.ReadLine()) == 1)
     {
         Console.WriteLine("server running");
         StartBot bot = new StartBot();
         bot.BotRun();
     }
     if (Convert.ToInt32(Console.ReadLine()) == 2)
     {
         Console.WriteLine("Enter сhatid");
         long chatid = Convert.ToInt64(Console.ReadLine());
         ReadLogs(chatid);
     }
     Console.ReadLine();
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     T();
     Console.WriteLine("Введите 1 чтобы запустить бота");
     Console.WriteLine("Введите 2 чтобы получить логи пользователя");
     if (Convert.ToInt32(Console.ReadLine()) == 1)
     {
         Console.WriteLine("server running");
         StartBot bot = new StartBot();
         bot.BotRun();
     }
     if (Convert.ToInt32(Console.ReadLine()) == 2)
     {
         Console.WriteLine("Введите сhatid пользователя");
         long chatid = Convert.ToInt64(Console.ReadLine());
         ReadLogs(chatid);
     }
     Console.ReadLine();
 }