-
Notifications
You must be signed in to change notification settings - Fork 54
WhatsApp XMPP Reference
Ben edited this page Jun 18, 2021
·
6 revisions
<ack/>
Attribute | Description |
---|---|
class |
message , receipt , ?
|
from |
Receiving from this JID. |
id |
Stanza ID |
participant |
Participant of group |
t |
Time (epoch) |
to |
Sending to this JID. |
type |
delivery , read
|
TODO
<ack from="[email protected]" class="receipt" type="read" id="123"/>
<chatstate/>
Attribute | Description |
---|---|
from |
Receiving from this JID. |
to |
Sending to this JID. |
Child | Description |
---|---|
<active/> |
User is actively participating in the chat session. |
<composing/> |
User is composing a message. |
<gone/> |
User has effectively ended their participation in the chat session. |
<inactive/> |
User has not been actively participating in the chat session. |
<paused/> |
User had been composing but now has stopped. |
<chatstate to="[email protected]"><composing/></chatstate>
<chatstate to="[email protected]"><paused/></chatstate>
<chatstate from="[email protected]"><composing/></chatstate>
<chatstate from="[email protected]"><paused/></chatstate>
<failure/>
Attribute | Description |
---|---|
location |
Datacenter location of connection |
reason |
Reason of failure |
<failure reason="401" location="nao"/>
<ib/>
<iq/>
<iq id="123" type="get" xmlns="w" to="s.whatsapp.net">
<props/>
</iq>
<iq id="123" xmlns="w:p" type="get" to="s.whatsapp.net">
<ping/>
</iq>
...
<iq to="s.whatsapp.net" id="123" type="result">
<ping/>
</iq>
...
<iq type="set" id="123" xmlns="w:profile:picture" to="{jid}@s.whatsapp.net">
<picture type="image" id="456">{imageData}</picture>
<picture type="preview">{previewData}</picture>
</iq>
None
<message/>
<message from="[email protected]" type="text" id="123" t="1623854590" notify="Name of User">
<enc v="2" type="msg">{{encryptedProtobuf}}</enc>
</message>
<presence/>
Attribute | Description |
---|---|
from |
Receiving from this JID. |
name |
Some nickname (?) |
last |
Last online time (epoch) |
to |
Sending to this JID. |
type attribute |
Description |
---|---|
active |
Active (as long as connected) |
available |
Available |
subscribe |
Subscribe (as long as connected) |
unavailable |
Unavailable |
unsubscribe |
Unsubscribe |
<presence type="available"/>
<presence to="[email protected]" type="subscribe"/>
<presence to="[email protected]" type="unsubscribe"/>
<presence from="[email protected]"/>
<presence from="[email protected]" type="unavailable" last="1623849759"/>
<success/>
Attribute | Description |
---|---|
abprops |
? |
creation |
Time of account creation (epoch) |
location |
Datacenter location of connection |
props |
? |
t |
Time of account login (epoch) |
<success t="162385119" props="26" location="nao" abprops="0" creation="162211362"/>
WAPI!!!
WAPI!!!