forked from orkestral/venom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: removing library, and fixing future functions
- Loading branch information
Showing
10 changed files
with
70 additions
and
251 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export async function deleteMessagesAll(chatId, messageArray, onlyLocal) { | ||
return WPP.chat.deleteMessage(chatId, messageArray, true, onlyLocal); | ||
//return WAPI.chat.deleteMessage(chatId, messageArray, true, onlyLocal); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export async function deleteMessagesMe(chatId, messageArray, revoke) { | ||
return WPP.chat.deleteMessage(chatId, messageArray, true, revoke); | ||
//return WAPI.chat.deleteMessage(chatId, messageArray, true, revoke); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
export async function getGroupParticipantIDs(groupId, done) { | ||
const output = Promise.resolve(WPP.group.getParticipants(groupId)).then( | ||
(participants) => participants.map((p) => p.toJSON()) | ||
); | ||
|
||
if (done !== undefined) done(output); | ||
return output; | ||
// const output = Promise.resolve(WAPI.group.getParticipants(groupId)).then( | ||
// (participants) => participants.map((p) => p.toJSON()) | ||
// ); | ||
// if (done !== undefined) done(output); | ||
// return output; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
export async function _getGroupParticipants(id, done) { | ||
const output = Promise.resolve(WPP.group.getParticipants(id)).then( | ||
(participants) => participants.map((p) => p.toJSON()) | ||
); | ||
|
||
if (done !== undefined) done(output); | ||
return output; | ||
// const output = Promise.resolve(WAPI.group.getParticipants(id)).then( | ||
// (participants) => participants.map((p) => p.toJSON()) | ||
// ); | ||
// if (done !== undefined) done(output); | ||
// return output; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
// * Credits for WPPConnect Team | ||
// * Author: <Edgard Messias> | ||
// * wppconnect-team/wa-js | ||
// * https://github.com/wppconnect-team/wa-js | ||
import type * as wajs from '@wppconnect/wa-js'; | ||
|
||
declare global { | ||
interface Window { | ||
WPP: typeof wajs; | ||
} | ||
const WPP: typeof wajs; | ||
} | ||
|
||
declare global { | ||
declare module global { | ||
interface Window { | ||
Store: any; | ||
} | ||
} | ||
//******************************************* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters