You can add numbers to block messages from unwanted senders.
Blocking messages on
Step 1: Go to messages, select the contact you want to block.
.jpg)
Step 2: Add the desired number you wish to block.
.jpg)
Step 3: You can also choose X to unblock a number.
.jpg)
That concludes the setup process. Wishing you all the best.