whenInputMediaDocument

inline fun <T> InputMedia.whenInputMediaDocument(block: (InputMediaDocument) -> T): T?