Update dependencies

This commit is contained in:
Darren Clarke 2023-07-05 06:56:01 +00:00 committed by GitHub
parent d404901583
commit 9b05288b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 83 additions and 84 deletions

View file

@ -11,17 +11,16 @@ import makeWASocket, {
fetchLatestBaileysVersion,
isJidBroadcast,
isJidStatusBroadcast,
MessageRetryMap,
useMultiFileAuthState,
} from "@adiwajshing/baileys";
} from "@whiskeysockets/baileys";
import fs from "fs";
import workerUtils from "../../worker-utils.js";
export type AuthCompleteCallback = (error?: string) => void;
export default class WhatsappService extends Service {
connections: { [key: string]: any } = {};
loginConnections: { [key: string]: any } = {};
connections: { [key: string]: any; } = {};
loginConnections: { [key: string]: any; } = {};
static browserDescription: [string, string, string] = [
"Metamigo",
@ -69,7 +68,7 @@ export default class WhatsappService extends Service {
) {
const directory = this.getAuthDirectory(bot);
const { state, saveCreds } = await useMultiFileAuthState(directory);
const msgRetryCounterMap: MessageRetryMap = {};
const msgRetryCounterMap: any = {};
const socket = makeWASocket({
...options,
auth: state,