feat(search): index provider webhooks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user