Add shared webhook runtime support
Share queue and runner lifecycle between polling and webhook Keep Close() local-only and harden webhook startup validation Document runtime transitions and add webhook regression tests
This commit is contained in:
+2
-1
@@ -93,7 +93,8 @@ func (bot *Bot[T]) UsePolicy(name string, policy Policy[T]) *Bot[T] {
|
||||
// - Metrics collection or health checks
|
||||
// - Scheduled tasks (e.g., daily announcements)
|
||||
//
|
||||
// Runners are started immediately after Bot.Run() is called.
|
||||
// Runners start from the bot runtime entry points, immediately after
|
||||
// RunWithContext or RunWebHookWithContext begins.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user