wwebjs-store
v1.0.5
Published
A package of extensions for enhanced usage of the RemoteAuth and remote Storage features in the whatsapp-web.js library.
Downloads
31
Maintainers
Readme
wwebjs-store
Quick Links
Instalation
Using NPM
npm install wwebjs-store
Using YARN
yarn add wwebjs-store
How to use
import { Provider, build } from "wwebjs-store";
const awsS3Options = {
accessKeyId: "JDHTTASGGG6T...", // required - AWS Access Key
secretAccessKey: "59NyYYNAkN5jKt4J...", // required - AWS Secret Access Key
region: "us-east-2", // optional - default is "us-east-1"
bucketName: "my-bucket", // optional - default is "whatsapp-web-session-files"
};
const store = build(Provider.AwsS3, awsS3Options);
const client = new Client({
authStrategy: new RemoteAuth({
store: store, // <--- Use store here
backupSyncIntervalMs: 300000,
}),
});