How do you know which nitrogen is going to be protonated?
You have check the basicity of the both the N atoms
One N atom is sp2 and other one is sp3 and sp2 N has less tendency to give its electrons and is less basic .
It is true that sp2 atoms are less basic, but this doesn't really apply to this particular problem. Although it appears that one of the nitrogens is sp3 hybridized, it has a reasonable resonance structure where it is pi bonding to an adjacent carbon. This makes it closer to sp2 hybridized. Consider the planarity of amide bonds for another example of this.
Resonance in this case controls which atom is more basic. One of the nitrogen atoms has more partial negative charge due to resonance, and protonation at this atom will also give a molecule that is more stabilized by resonance.