-
-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #754 from codigoencasa/fix/addAction-donwload
chore: next-version
- Loading branch information
Showing
17 changed files
with
189 additions
and
259 deletions.
There are no files selected for viewing
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,6 +1,6 @@ | ||
{ | ||
"name": "@bot-whatsapp/root", | ||
"version": "0.1.25", | ||
"version": "0.1.27", | ||
"description": "Bot de wahtsapp open source para MVP o pequeños negocios", | ||
"main": "app.js", | ||
"private": true, | ||
|
@@ -84,12 +84,12 @@ | |
"standard-version": "^9.5.0", | ||
"uvu": "^0.5.6" | ||
}, | ||
"packageManager": "pnpm@7.25.1", | ||
"packageManager": "pnpm@8.5.0", | ||
"engines": { | ||
"node": ">=16", | ||
"npm": "please-use-pnpm", | ||
"yarn": "please-use-pnpm", | ||
"pnpm": ">=7.18.0" | ||
"pnpm": ">=8.5.0" | ||
}, | ||
"author": "Leifer Mendez <[email protected]>" | ||
} |
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 |
---|---|---|
|
@@ -29,7 +29,6 @@ class MongoAdapter { | |
} | ||
|
||
save = async (ctx) => { | ||
|
||
const ctxWithDate = { | ||
...ctx, | ||
date: new Date(), | ||
|
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
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,6 +1,6 @@ | ||
{ | ||
"dependencies": { | ||
"@adiwajshing/baileys": "github:WhiskeySockets/Baileys", | ||
"@adiwajshing/baileys": "4.4.0", | ||
"wa-sticker-formatter": "4.3.2" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const axios = require('axios') | ||
|
||
async function getMediaUrl(version, IdMedia, numberId, Token) { | ||
try { | ||
const response = await axios.get( | ||
`https://graph.facebook.com/${version}/${IdMedia}?phone_number_id=${numberId}`, | ||
{ | ||
headers: { | ||
Authorization: `Bearer ${Token}`, | ||
}, | ||
maxBodyLength: Infinity, | ||
} | ||
) | ||
return response.data?.url | ||
} catch (error) { | ||
console.log(error) | ||
} | ||
} | ||
|
||
module.exports = { | ||
getMediaUrl, | ||
} |
Oops, something went wrong.