[core] Fix get chats with limit offset properties

fixes #486
This commit is contained in:
devlikepro committed 2024-08-18 14:21:33 +07:00
1 parent 92d3e70c1f
commit da650ccdef
1 file changed
+5 -2
+5 -2
View File
@@ -7,8 +7,11 @@ const { LoadUtils } = require('./WahaInjected');
const ChatFactory = require('whatsapp-web.js/src/factories/ChatFactory');
export class WebjsClient extends Client {
async initialize() {
await super.initialize();
async inject() {
// Even tho this.inject is not defined as interface in Client.ts
// We can still call and override it
// @ts-ignore
await super.inject();
//Load util functions (serializers, helper functions)
await this.pupPage.evaluate(LoadUtils);
}