Support for sending to group chats #55

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
7 participants

jorams commented Sep 15, 2012

I've added support for sending messages to group chats.
The JID for group chats consists of the JID of the group owner, followed by a hyphen and an id. The server for group chats is 'g.us' instead of 's.whatsapp.net'.

My change checks for the existance of a hyphen to determine whether the recipient is a group chat. If so, it uses 'g.us' as the server.

In case this is not known: The easiest way to find the JID for a group chat is to find the profile image in /sdcard/WhatsApp/Profile Pictures. The JID is the name of the image. (Without the extension of course)

patschi commented Sep 16, 2012

Won't work for me... Tried all combinations - The group didn't got any message...

Contributor

arthursc commented Sep 16, 2012

No problems here.

Don't forget to remove the @g.us from the to address (if you're using the from value from a received message in the group).

need add the if on protected function SendMessageNode

yairnet commented Sep 23, 2012

need add the if on protected function SendMessageNode
work good :O

anyone has idea how to create a new group ?

kirthar referenced this pull request Oct 10, 2012

Closed

Send simple text #108

shargon commented Jan 4, 2013

All Is working ;)

Contributor

shirioko commented Jan 4, 2013

I think they already figured that out when they closed the issue 3 months ago...

jorams closed this May 31, 2013

Contributor

shirioko commented May 31, 2013

You can always open a pull request to my repo, venomous0x is kind of AWOL... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment