Animal

I'm a mammal that can fly and I sleep hanging upside down. What am I?