How the link is built
A WhatsApp chat link is https://wa.me/ followed by the full number in international format: the country code, without the + sign, without the leading 0 of the national number, and without spaces or dashes. That is the rule WhatsApp publishes in its help page on click to chat.
In Morocco, 06 12 34 56 78 becomes 212612345678, and the link https://wa.me/212612345678. The generator does the conversion for you, whether you type the number with the 0, with +212 or with 00212.
The pre-filled message goes after ?text=, encoded for the web: spaces become %20, accents and punctuation are converted. The person who clicks sees the message in the input box and chooses to send it or edit it; nothing is sent automatically.