feat(search): index provider webhooks

This commit is contained in:
2026-06-07 15:23:29 +08:00
parent 28e7205410
commit 8eabadc3fc
10 changed files with 183 additions and 13 deletions
@@ -63,6 +63,13 @@ func (h *TelegramWebhookHandler) WithWorkerPool(wp *worker.WorkerPool) *Telegram
return h
}
func (h *TelegramWebhookHandler) WithSearchIndexer(indexer IncomingSearchIndexer) *TelegramWebhookHandler {
if h != nil && h.persister != nil {
h.persister.SetSearchIndexer(indexer)
}
return h
}
// HandleTelegramWebhook processes an incoming Telegram webhook Gin request.
// URL pattern: /webhooks/telegram/:bot_token
// Method: POST