@Ken *******
in 2014, I attempted to contact the Thai embassy in Quito to obtain any type of visa. They were always either closed or official was out of the office. Never answered phone calls. I ran out of time and obtained a 30 day visa exemption in BKK. Then obtained a student visa, requiring me to leave Thailand then re-enter.
I think all visas require a border run to obtain if you have a 30 day visa exemption, not sure. Others in this group are more expert.
My point, best to arrive with a visa, if that can’t happen, then there are other solutions.