Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Jul 28, 2023
1 parent 26bb300 commit 4e290c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Echo/Main/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static class Program
{
private static TelegramBot? _telegramBot;
private static readonly LogConfig LogConfig = new();
private static readonly Logger MainLogger = new(LogConfig);

private static async Task HandleUpdateAsync(ITelegramBotClient botClient, Update update,
CancellationToken cancellationToken)
Expand All @@ -31,7 +30,8 @@ private static async Task HandleUpdateAsync(ITelegramBotClient botClient, Update

public static void Main(string[] args)
{
MainLogger.Info("Hello, starting Echo bot!");
PoliNetwork.Core.Data.Variables.DefaultLogger.SetLogConfing(LogConfig);
PoliNetwork.Core.Data.Variables.DefaultLogger.Info("Hello, starting Echo bot!");
_telegramBot = new TelegramBot("token", LogConfig);
_telegramBot.Start(HandleUpdateAsync);
Wait.WaitForeverConsoleReadline();
Expand Down

0 comments on commit 4e290c4

Please sign in to comment.