Skip to content

Commit

Permalink
fix: changed fromBuffer property to fileTypeFromBuffer (wppconnect-te…
Browse files Browse the repository at this point in the history
  • Loading branch information
edupoli authored Nov 26, 2021
1 parent 657950c commit c5c6667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chat/Chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ export class Chat extends Emittery<ChatEventTypes> {
);

if (!filename) {
const result = await FileType.fromBuffer(buffer);
const result = await FileType.fileTypeFromBuffer(buffer);
if (result) {
const baseType = result.mime.split('/')[0];
filename = `${baseType}.${result.ext}`;
Expand Down

0 comments on commit c5c6667

Please sign in to comment.