0

I use this code to send a Message to WhatsApp:

string phoneNumberWithCountryCode = "+20>>>>>>>>";
string message = "Test Program \n Test Program \n Test";;
StartActivity(new Intent(Intent.ActionView,
  Android.Net.Uri.Parse(
    "https://api.whatsapp.com/send?phone=" + phoneNumberWithCountryCode + "&text=" + message)));

It seems ok, but the message isn't send to a receiver. Instead, it is being sent to the WhatsApp textbox and I need to press Go or Enter to send the Message. How do I write 'Press go' or 'Enter' in my code to send it directly? I need Send Key like C#.

Michael M.
  • 10,486
  • 9
  • 18
  • 34
  • You can refer to this case about [Send message via whatsapp programmatically](https://stackoverflow.com/questions/49654674/send-message-via-whatsapp-programmatically). It tells how to send WhatsApp message automatically. – Jianwei Sun - MSFT Jan 02 '23 at 09:16

0 Answers0