Before attempting to hug your cat, get to know your cat's temperament. Not all cats enjoy a lot of physical contact and could scratch or bite if hugged. Make sure your cat is the affectionate type before attempting a hug.  Spend time with your cat. Spend an hour or so a day in the same room as your cat. Pay attention to how she interacts with you. Does she tend to be snuggly and affectionate, rubbing her face on you? Or does she tend to be somewhat standoffish, sitting near you but not wanting much physical affection?  Cats that are more touchy-feely tend to be more relaxed about being picked up and handled. It's probably safe to try and hug a friendlier cat, but one that seems standoffish or shy may dislike being handled in this fashion. Even a warm and affectionate cat will lash out when frightened. Take some time to learn about cat body language so you can gauge when a cat is in a positive mood.  When cats are happy, they show it with their body. Ears are generally forward slightly, pupils constricted with eyes half closed, tails straight up and curled on the top, and backs arched with fur flattened. Cats will also purr or meow quietly when happy to see you.  Conversely, an aggressive or frightened cat will growl or meow loudly in a lower pitch. She will dilate her pupils, thrash her tail back and forth or tuck it between her legs, and arch her back and stick her fur up. You should not try to hug a cat in this state. Even friendly and affectionate cats might resist being picked up. Cats tend to be more independent animals and often resist feeling confined. However, cats who've lived with young children are often used to be carried around and will allow it. If a cat does not like being held, she might thrash or squirm in your arms. You might still be able to hug a cat who dislikes being picked up, but you'll have to do so without holding her.

TL;DR in Vietnamese:
Hiểu rõ tính khí của mèo. Tìm hiểu ngôn ngữ cơ thể mèo. Quan sát phản ứng của mèo khi được nhấc lên.