This commit is contained in:
2021-02-05 19:28:02 +03:00
parent 8c9e69720b
commit 0000837c40
7 changed files with 133 additions and 11 deletions
+4 -1
View File
@@ -1,5 +1,7 @@
using System;
using System.Threading;
using NLog;
using RgDevBot.Config;
namespace RgDevBot
{
@@ -7,8 +9,9 @@ namespace RgDevBot
{
static void Main(string[] args)
{
var config = new SentConfig(LogManager.GetCurrentClassLogger());
var bot = new TelegramBot();
var parser = new NewsParser(bot);
var parser = new NewsParser(bot, config);
while (true)
{
parser.Parse();