mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-20 23:56:08 +03:00
Log successful Telegram connection
This commit is contained in:
parent
c0f834780d
commit
5100f7462d
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user