Fix running in systemd environment
This commit is contained in:
parent
f373dd570d
commit
16d2b0304f
|
@ -33,7 +33,8 @@ var iBotCommands = new List<string> {
|
|||
|
||||
bot.StartReceiving(HandleUpdateAsync, PollingErrorHandler, null, cts.Token);
|
||||
Console.WriteLine($"Start listening for @{me.Username}");
|
||||
Console.ReadLine();
|
||||
do { } while (Console.ReadLine() != "exit");
|
||||
|
||||
cts.Cancel();
|
||||
|
||||
Task PollingErrorHandler(ITelegramBotClient ibot, Exception ex, CancellationToken ct) {
|
||||
|
|
Loading…
Reference in a new issue