DEV Community

Cover image for WhatsApp Custom Link Message
Alexandre Freire
Alexandre Freire

Posted on • Updated on

WhatsApp Custom Link Message

Make custom link messages to Whatsapp with nuget package.

var waComposer = new WaComposer();
//Observation: this 1,1 is break line. 1 before and 1 after

waComposer.WriteText("Item One");

//can format - available options: Italic, Bold, Strikethrough, Monospace.
waComposer.WriteText(WaFormat.Italic("Example Number: ") + "3");

var textResult = waComposer.GetText();

var whatsAppLink = WaSender.GetLink("PHONE_NUMBER_HERE",textResult);

//example output of whatsAppLink 
or on mobile 

Enter fullscreen mode Exit fullscreen mode

being able to stay like this for example:

Image description

Available on

Top comments (0)