Skip to content

Commit

Permalink
Revert "γ‚ž π†πšπ›π«π’πžπ₯ 𝐒𝐀 ぁ"
Browse files Browse the repository at this point in the history
This reverts commit 917317b.
  • Loading branch information
BrunoSobrino committed Oct 6, 2024
1 parent 5d5c7aa commit 0124377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/gc-add.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const {generateWAMessageFromContent, prepareWAMessageMedia,WAE2E} = (await import("baileys")).default;
const {generateWAMessageFromContent, prepareWAMessageMedia,WAWeb} = (await import("baileys")).default;
import fetch from 'node-fetch';
const {getBinaryNodeChild, getBinaryNodeChildren} = (await import("baileys")).default;
const handler = async (m, {conn, text, participants, args}) => {
Expand Down Expand Up @@ -30,7 +30,7 @@ const handler = async (m, {conn, text, participants, args}) => {
m.reply(teks, null, {mentions: conn.parseMention(teks)});
const captionn = tradutor.texto4;
const messaa = await prepareWAMessageMedia({image: jpegThumbnail}, {upload: conn.waUploadToServer});
const groupInvite = generateWAMessageFromContent(m.chat, WAE2E.Message.fromObject({groupInviteMessage: {groupJid: m.chat, inviteCode: invite_code, inviteExpiration: invite_code_exp, groupName: await conn.getName(m.chat), caption: captionn, jpegThumbnail: jpegThumbnail}}), {userJid: jid});
const groupInvite = generateWAMessageFromContent(m.chat, WAWeb.Message.fromObject({groupInviteMessage: {groupJid: m.chat, inviteCode: invite_code, inviteExpiration: invite_code_exp, groupName: await conn.getName(m.chat), caption: captionn, jpegThumbnail: jpegThumbnail}}), {userJid: jid});
await conn.relayMessage(jid, groupInvite.message, {messageId: groupInvite.key.id});
}
} catch {
Expand Down

0 comments on commit 0124377

Please sign in to comment.