**Generally, no—you should budget for your own hotel during a scheduled 21-hour layover in Bangkok.** Thai Airways has historically not provided complimentary accommodation simply because a connection is long. The [answer to this same question on Travel Stack Exchange](https://travel.stackexchange.com/questions/94836/will-thai-airways-provide-free-accommodation-for-transit-in-bangkok) confirms that, although it dates from 2017; I couldn’t find a current official policy guaranteeing a free hotel.

Before booking accommodation, ask Thai Airways or your travel agent to check your particular ticket for any included hotel benefit. If the long wait resulted from a cancellation or schedule change, mention that, because different assistance rules may apply.

If you book a hotel outside the airport, you’ll need to meet Thailand’s entry requirements.