Here is a screenshot FROM the Thai immigration website
Passport
The entry prerequisites differ based on the passport type you are holding for travel.
Prior to your journey, consult with your travel carrier regarding passport stipulations, as their validity rules might be stricter than those mandated by the destination country.
Ensure that your passport has at least six months of validity remaining upon your arrival