Добавлены новые методы отправки сообщений

This commit is contained in:
2026-02-06 04:38:06 +03:00
parent 69ff3cf7d4
commit cd280369bc
25 changed files with 1525 additions and 219 deletions

View File

@@ -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();
}
}
}