I had Thai last night too, pad mamuang chicken and veg but cooked my own rice.
If it's a reputable place that you usually go to and you know the food is safe surely it's ok.
I know rice can be an issue if it's not cooked fresh.
If it was steaming hot when you bought it and you ate it before the danger period which is 2 hrs then I'm sure you're fine.
I guess it's a risk but if you're sensible bout it then I'm sure takeaways are fine.
Maybe if you're concerned about how hot it was next time you could zap it in the microwave.
They usually cook to order at takeaway places so I'm sure you're fine