Update dependencies
This commit is contained in:
parent
d404901583
commit
9b05288b40
14 changed files with 83 additions and 84 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue