A very low body weight is important to take off. For this reason, the bones of flying animals are much lighter than that of others.
The bats achieve this by having extremely thin bones. Besides, the bones of birds and pterosaurs are hollow. The bone of the birds has an inner structure that – despite its hollowness – makes it firm and strong.