Добавлены новые методы отправки сообщений
This commit is contained in:
@@ -51,8 +51,16 @@ namespace Demo
|
||||
.AddTelegramAdapter(token, "Telegram")
|
||||
.Build(cts.Token);
|
||||
|
||||
Console.ReadKey();
|
||||
cts.Cancel();
|
||||
|
||||
Console.WriteLine("Bot is running. Press Ctrl+C to stop.");
|
||||
Console.CancelKeyPress += (sender, e) =>
|
||||
{
|
||||
Console.WriteLine("Cancel key pressed");
|
||||
cts.Cancel();
|
||||
e.Cancel = true;
|
||||
};
|
||||
|
||||
app.Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user