1.0.2 • Published 3 years ago

whatsapp-protobuf v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

WhatsApp Web Protol Buffer

This contain prebuild WhatsApp Web Protocol Buffer for NodeJS, so you don't need to do anything, just import.

If You Want to Rebuild

How to Update whatsapp.proto to The Latest Version?

You can update it by extracting from web.whatsapp.com with the extractor tool by Sigalor. Check here: github.com/sigalor/whatsapp-web-reveng

Rebuild proto notes Some Protobuf Builder ignore the syntax=proto2, so I need to enhanced whatsapp.proto like this:

# from 
repeated uint32 scanLengths = 22;
# to
repeated uint32 scanLengths = 22 [packed=false];

and also I modified generated ts file manually, because protoc-gen-ts has problem dealing with repeated integer fields on protobuf version 2. this the patch:

# REPLACE
message.scanLengths = reader.readUint32();
# WITH
pb_1.Message.addToRepeatedField(message, 22, reader.readUint32());

I have replaced it in build.sh using sed.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago