On second thoughts, I was perhaps too fast in replying. Groups are a bit special.
The code I posted will open the WhatsApp group, then you need to use the
accessibility services to fill in the message and to trigger the send-button.
It should be quite trivial to implement. Just look at the sample project I posted in the other thread.