Except Telegram requires you to pay to have the option of only allowing your contacts to message you.
And even then, if the spammer buys premium, they can still message you!