DetectLinkPreviewTargetUseCase

Detects the first preview-eligible URL in a message body.

Applies the same exclusion and blacklist rules used by link preview generation so callers can reuse one consistent target-selection policy across platforms.

Inheritors

Functions

Link copied to clipboard
abstract operator fun invoke(text: String, mentions: List<MessageMention> = emptyList()): LinkPreviewTarget?