https://get21stnight.com/2020/03/30/why-do-we-keep-getting-d...
Their lungs do not contract like mammals but the air sacs do - so when they exhale their lungs are still performing a gas exchange.
A bit misleading to use the term "only" here, as there are over 1000 species of bats and they make up almost one quarter of all identified mammal species.
If not, it's an irrelevant level of detail for this context.
[0] https://get21stnight.com/2020/03/30/why-do-we-keep-getting-d...
Focusing on internal temperature during flight[0], there can be swings between species as drastic as "this would be a life threatening fever in a human" to "this counts as hypothermia in a human".