Skip to content

Commit

Permalink
[core] webjs fix download media
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Jun 13, 2024
1 parent 5684665 commit a0dd540
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/engines/webjs/session.webjs.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from 'whatsapp-web.js';
import { Message as MessageInstance } from 'whatsapp-web.js/src/structures';

import { parseBool } from '../../../helpers';
import {
ChatRequest,
CheckNumberStatusQuery,
Expand Down Expand Up @@ -421,6 +422,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
}

async getChatMessages(chatId: string, limit: number, downloadMedia: boolean) {
downloadMedia = parseBool(downloadMedia)
const chat: Chat = await this.whatsapp.getChatById(
this.ensureSuffix(chatId),
);
Expand Down

0 comments on commit a0dd540

Please sign in to comment.