SNAC(04,14)  TYPING_NOTIFICATION 

This snac used by client and server for mini typing notification (MTN). Basically, when you begin typing something you send a "typing begun" message, then a few seconds later you send a "text typed" message, then after you actually send the message, you send a "no more text has been typed" message. You also send the "typing finished" message if you delete all the stuff you've typed.

Remote clients know that your client supports MTN because the server appends an empty type 0x000b TLV to all outgoing IMs. You tell the server you want this TLV appended when you send the SNAC(04,02). Just set message flags bit4=1. Send and receive SNACs has the same type=0x14. Here is the known notification types list:

0x0000 - typing finished sign
0x0001 - text typed sign
0x0002 - typing begun sign

 00 04   word   SNAC family
 00 14   word   SNAC subtype
 00 00   word   SNAC flags
 xx xx xx xx   dword   SNAC request-id
 00 00 00 00
 00 00 00 00
  qword   notification-id cookie
 xx xx   word   notification channel
 xx   byte   screenname string length
 xx ..   string   screenname string
 xx xx   word   notification type (see above)

Example SNAC dump with flap header:
                   
  2A 02 38 C2 00 1E 00 04 00 14 00 00 00 00 00 14 *.8.............
  00 00 00 00 00 00 00 00 00 01 07 36 32 31 38 38 ...........62188
  39 35 00 02                                     95..


  Main | Basic | Login | Snaclist | Sequences | Misc | Changes | Credits | Terms