venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.14k forks source link

discussing a way to new Login/Auth/Challenge/KeyStream Mechanism #422

Closed assegaf closed 10 years ago

assegaf commented 11 years ago

hi,

just notice about this function

protected function sendMessageReceived($msg) .... $messageHash["type"] = "chat"; ....

I see this also executed doing many message notification, like this one (receive profile image change) : rx [message from="628151XXXXXX@s.whatsapp.net" id="1172606828" type="notification" t="1374144652" ] rx [notify xmlns="urn:xmpp:whatsapp" name="Nadia Makes"][/notify] rx [request xmlns="urn:xmpp:receipts"][/request] rx [notification type="picture"] rx [set jid="628151XXXXXX@s.whatsapp.net" id="1374144652"][/set] rx [/notification] rx [/message]

is it that we must return the same type as it, so as "notification" not "chat"

CODeRUS commented 11 years ago

@shirioko can you show sample of $array ?

shirioko commented 11 years ago
31650568134Sšfq­ª#˜Z:í¯vÌ<™o2&1375966295WhatsApp/2.10.222 Android/4.2.2 Device/LGE-Nexus_4 MccMnc/204001
shirioko commented 10 years ago

https://github.com/venomous0x/WhatsAPI/commit/cefc05ceda6c85fbf99dae867328ddf83d32a743