Many writing here seem to have completely missed the point. Thailand, along with quite a few other countries, signed a (globalist) agreement with the OECD:
"Thailand signs Multilateral Convention to Implement Tax Treaty Related Measures to Prevent BEPS. On 9 February 2022, Thailand signed the Multilateral Convention to Implement Tax Treaty Related Measures to Prevent BEPS (the MLI)."
The tax number that you will receive if you take the trouble to apply for one (TIN) will be an International Tax Number, "This enactment brought into effect the Automatic Exchange of Information Common Reporting Standard laws." So if you escape paying taxes here, you will eventually finish up paying them elsewhere.
https://www.expattaxthailand.com/tax-identification-number-thailand/
Google Thailand form L.P.10.1