Use the below method to generate your own or others GroupJID using the GroupId.
Group messaging is very similar to the singlechat messaging. Instead of giving singlechat jid , you need to provide group jid. If you don't have group jid, you can prepare using the above method by giving group id.
Refer here to send a message in group.