@Alex ************
Ok now you have made it clear.
Thailand airport is open for international flights, and certain categories of people can enter with a COE.
You need to contact the Thai embassy in Brazil and they will inform you of the criteria you should meet to gain a COE.
Then they will book you on a repatriation flight from Brazil if they are doing this.
If not you will be struggling to get a flight into Thailand.