Dear all,
We are trying to display details of funds for one of our client in WhatsApp BOT. While sending details to WhatsApp using * for reflecting fonts in bold, we are getting text as is with *. Hence we directly copy pasted bold text in function but its reflecting different font family. Appreciate quick help on it. Sharing below code snippet.
Note: The details we are sending to WhatsApp, that is developed in function.
Code:
if (paymentdetailsapi.InitialContributionPendingAmt == 0) {
await app.sendTextMessage(๐
๐ฎ๐ง๐ ๐๐จ๐ฆ๐ฆ๐ข๐ญ๐ฆ๐๐ง๐ญ : โน ${res_new}\n๐๐ง๐ข๐ญ๐ข๐๐ฅ ๐๐จ๐ง๐ญ๐ซ๐ข๐๐ฎ๐ญ๐ข๐จ๐ง ๐๐๐๐๐ข๐ฏ๐๐ : โน ${res_new1}\n๐๐ง๐ข๐ญ๐ข๐๐ฅ ๐๐จ๐ง๐ญ๐ซ๐ข๐๐ฎ๐ญ๐ข๐จ๐ง ๐๐๐ฒ๐๐๐ฅ๐ : โน ${res_new2}
);
return resolve()
}
if (url == 1 && bankdetails==0 ) {
await app.sendTextMessage(`๐
๐ฎ๐ง๐ ๐๐จ๐ฆ๐ฆ๐ข๐ญ๐ฆ๐๐ง๐ญ : โน ${res_new}\n๐๐ง๐ข๐ญ๐ข๐๐ฅ ๐๐จ๐ง๐ญ๐ซ๐ข๐๐ฎ๐ญ๐ข๐จ๐ง ๐๐๐๐๐ข๐ฏ๐๐ : โน ${res_new1}\n๐๐ง๐ข๐ญ๐ข๐๐ฅ ๐๐จ๐ง๐ญ๐ซ๐ข๐๐ฎ๐ญ๐ข๐จ๐ง ๐๐๐ฒ๐๐๐ฅ๐ : โน ${res_new2}\n\n๐๐๐ฒ๐ฆ๐๐ง๐ญ ๐๐ฉ๐ญ๐ข๐จ๐ง๐ฌ\n๐. ๐๐๐ฒ๐ฆ๐๐ง๐ญ ๐๐ข๐ง๐ค : ${paymentdetailsapi.PaymentOption.linkDetails[0].PaymentLink}`);
}
else{
await app.sendTextMessage(`๐
๐ฎ๐ง๐ ๐๐จ๐ฆ๐ฆ๐ข๐ญ๐ฆ๐๐ง๐ญ : โน ${res_new}\n๐๐ง๐ข๐ญ๐ข๐๐ฅ ๐๐จ๐ง๐ญ๐ซ๐ข๐๐ฎ๐ญ๐ข๐จ๐ง ๐๐๐๐๐ข๐ฏ๐๐ : โน ${res_new1}\n๐๐ง๐ข๐ญ๐ข๐๐ฅ ๐๐จ๐ง๐ญ๐ซ๐ข๐๐ฎ๐ญ๐ข๐จ๐ง ๐๐๐ฒ๐๐๐ฅ๐ : โน ${res_new2}\n\n๐๐๐ฒ๐ฆ๐๐ง๐ญ ๐๐ฉ๐ญ๐ข๐จ๐ง๐ฌ\n๐. ๐๐๐ฒ๐ฆ๐๐ง๐ญ ๐๐ข๐ง๐ค : ${paymentdetailsapi.PaymentOption.linkDetails[0].PaymentLink}\n\n๐. ๐๐๐ง๐ค ๐๐๐๐จ๐ฎ๐ง๐ญ ๐๐๐ญ๐๐ข๐ฅ๐ฌ\n๐๐ข๐ซ๐ญ๐ฎ๐๐ฅ ๐๐๐๐จ๐ฎ๐ง๐ญ ๐o : ${paymentdetailsapi.PaymentOption.vanDetails[0].AccountNo}\n๐๐๐ง๐ค ๐๐๐ฆ๐ : ${paymentdetailsapi.PaymentOption.vanDetails[0].BankName}\n๐๐
๐๐ : ${paymentdetailsapi.PaymentOption.vanDetails[0].IfscCode}\n๐๐๐ง๐๐๐ข๐๐ข๐๐ซ๐ฒ ๐๐๐ฆ๐ : ${paymentdetailsapi.PaymentOption.vanDetails[0].BeneficiaryName}`);
}