Log successful Telegram connection

This commit is contained in:
jetsparrow 2025-09-19 23:02:37 +03:00
parent c0f834780d
commit 5100f7462d

View File

@ -23,6 +23,8 @@ public partial class JetHeraldBot
Client = new TelegramBotClient(TelegramConfig.ApiKey);
Me = await Client.GetMeAsync();
Log.LogInformation("Connected to Telegram as {username}, id:{id})", Me.Username, Me.Id);
Commands = new ChatCommandRouter(Me.Username, Log);
Commands.Add(new SubscribeCommand(Db, Client), "subscribe", "sub");
Commands.Add(new UnsubscribeCommand(Db, Client), "unsubscribe", "unsub");