Most Helpful Guy
Just do it. A hug isn't going to give it away that he likes you, it just means you want a damn hug lol. Plus, this gives you a chance to see how he reacts to it, to infer wether or not he likes you. Judging by his heart emojis that he sent you, I'd say there is a very good chance he likes you.
As for how to hug him, just put your arms around his neck, and your head over his shoulder/against his chest (depending on how tall he is compared to you), squeeze, then let go. Simple.0