Skip to content

Commit

Permalink
Revert "γ‚ž π†πšπ›π«π’πžπ₯ 𝐒𝐀 ぁ"
Browse files Browse the repository at this point in the history
This reverts commit dbf1e8d.
  • Loading branch information
BrunoSobrino committed Oct 6, 2024
1 parent e55c206 commit 84a699e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/_cmdWithMedia.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { WAWeb, generateWAMessage, areJidsSameUser } = (await import("baileys")).default;
const { proto, generateWAMessage, areJidsSameUser } = (await import("baileys")).default;

export async function all(m, chatUpdate) {
if (m?.isBaileys) return;
Expand All @@ -18,7 +18,7 @@ export async function all(m, chatUpdate) {
if (m.isGroup) messages.participant = m.sender;
const msg = {
...chatUpdate,
messages: [WAWeb.WebMessageInfo.fromObject(messages)],
messages: [proto.WebMessageInfo.fromObject(messages)],
type: 'append',
};
this.ev.emit('messages.upsert', msg);
Expand Down

0 comments on commit 84a699e

Please sign in to comment.