2.3000.1014578518 • Published 12 months ago

wweb-proto v2.3000.1014578518

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

WhatsApp Web Protobuf

The package wweb-proto allows javascript developers to easily access the ProtoBuffer definitions used by WhatsApp Web. This enables the programmatic analysis and manipulation of messages and other data from WhatsApp Web using the package @bufbuild/protoc-gen-es.

✨ The proto files were last modified in WhatsApp Web version: 2.3000.1014578518.

⚠️ This package is automatically updated when a change is detected in the proto files.

Installation

To install the package, use npm:

npm install wweb-proto

Usage

To access the compiled ProtoBuffer objects, you can use the following code:

const { Message, MessageKey, ... } = require('wweb-proto');

const message = Message.create({ awesomeField: "AwesomeString" });

const buffer = Message.encode(message).finish();
const decodedMessage = Message.decode(buffer);

The extracted and compiled ProtoBuffer definitions are ready to be used. To learn how to work with these definitions, please refer to the bufbuild/protobuf-es documentation.

Contributing

Contributions are welcome! If you find an issue or have a suggestion, please open an issue or submit a pull request on the GitHub repository.

2.3000.1014578518

12 months ago

2.3000.0

1 year ago

2.2413.51

1 year ago