parthiban
parthiban

Reputation: 125

Send message to all users inside a group - Smack API

I know that we can privately chat with the users in a group by Chat chat = muc2.createPrivateChat("[email protected]/johndoe"); chat.sendMessage("Hello there"); as given in the documentation.

But I didn't find a way to publicly chat to all the users in the group. Any idea?

Thanks in advance.

Upvotes: 1

Views: 969

Answers (1)

parthiban
parthiban

Reputation: 125

Thanks for comments on my question. I solved by problem of chatting to all the users in the group as follows,

Message msg = new Message("[email protected]", Message.Type.groupchat);
msg.setBody("Hai... How are you?..");
oXmppConnection.sendPacket(msg);

Upvotes: 1

Related Questions