简体   繁体   中英

Whatsapp send message to particular group via intent

I was wondering it its possible to send message to a particular group in whatsapp via android intents. I found that there is a way to send message to a particular contact(however that just opens the chat window with that particular contact with no message typed in).

Even being able to open a group chat window directly would be enough for me at this stage. So how do I do it?

I had the same problem, this is a partial solution:

Uri uri = Uri.parse("https://chat.whatsapp.com/uniqueId");
Intent i = new Intent(Intent.ACTION_VIEW, uri);
startActivity(Intent.createChooser(i, ""));

where the link chat.whatsapp.com/uniqueId is the join group by link option in the whatsapp group: group > add participant > invite to group via link

This option opens the requested WhatsApp group.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM