If you mean SMS, I don’t think you can’t anymore.
I remember in a old(er) version it was enough to block (unknown) telephone numbers. I would say check the FAQ.