Is this sentence natural and grammatically correct?

Someone tattled on me that I had liked him.

I think it means someone secretly told someone else that I had liked him.


The verb "tattle" is usually not used like this. The sentence should be, for example:

Someone let _____ know that I like him.