Its easyowh ok ok i am not well in coding can you give some easy steps to achive this sir
You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
Its easyowh ok ok i am not well in coding can you give some easy steps to achive this sir
Ctrl + shift + fwhere do i add this? which file do I edit?
Im not good in coding. can you tell me how I can easily identify the file my friendwhere do i add this? which file do I edit?
Convert to base64 image used default baileys library..Trying to get media from webhook
It turns out it's not as easy as getting the name, telephone number and picture on WhatsApp because the media on WhatsApp is encrypted and it's quite difficult to bypass
const {
default: makeWASocket,
downloadContentFromMessage,
} = require("@adiwajshing/baileys");
async function parseIncomingMessage(msg) {
const type = Object.keys(msg.message || {})[0];
const body =
type === "conversation" && msg.message.conversation
? msg.message.conversation
: type == "imageMessage" && msg.message.imageMessage.caption
? msg.message.imageMessage.caption
: type == "videoMessage" && msg.message.videoMessage.caption
? msg.message.videoMessage.caption
: type == "extendedTextMessage" && msg.message.extendedTextMessage.text
? msg.message.extendedTextMessage.text
: type == "messageContextInfo" && msg.message.listResponseMessage?.title
? msg.message.listResponseMessage.title
: type == "messageContextInfo"
? msg.message.buttonsResponseMessage.selectedDisplayText
: "";
const d = body.toLowerCase();
const command = await removeForbiddenCharacters(d);
const senderName = msg?.pushName || "";
const from = msg.key.remoteJid.split("@")[0];
//const me = sock.user.id.split(':')[0];0;
let bufferImage;
if (type === "imageMessage") {
const stream = await downloadContentFromMessage( msg.message.imageMessage, "image" );
let buffer = Buffer.from([]);
for await (const chunk of stream) {
buffer = Buffer.concat([buffer, chunk]);
}
bufferImage = buffer.toString("base64");
} else {
urlImage = null;
}
return { command, bufferImage, from, senderName};
}
Good jobConvert to base64 image used default baileys library..
JavaScript:const { default: makeWASocket, downloadContentFromMessage, } = require("@adiwajshing/baileys"); async function parseIncomingMessage(msg) { const type = Object.keys(msg.message || {})[0]; const body = type === "conversation" && msg.message.conversation ? msg.message.conversation : type == "imageMessage" && msg.message.imageMessage.caption ? msg.message.imageMessage.caption : type == "videoMessage" && msg.message.videoMessage.caption ? msg.message.videoMessage.caption : type == "extendedTextMessage" && msg.message.extendedTextMessage.text ? msg.message.extendedTextMessage.text : type == "messageContextInfo" && msg.message.listResponseMessage?.title ? msg.message.listResponseMessage.title : type == "messageContextInfo" ? msg.message.buttonsResponseMessage.selectedDisplayText : ""; const d = body.toLowerCase(); const command = await removeForbiddenCharacters(d); const senderName = msg?.pushName || ""; const from = msg.key.remoteJid.split("@")[0]; //const me = sock.user.id.split(':')[0];0; let bufferImage; if (type === "imageMessage") { const stream = await downloadContentFromMessage( msg.message.imageMessage, "image" ); let buffer = Buffer.from([]); for await (const chunk of stream) { buffer = Buffer.concat([buffer, chunk]); } bufferImage = buffer.toString("base64"); } else { urlImage = null; } return { command, bufferImage, from, senderName}; }
not work for big filesConvert to base64 image used default baileys library..
JavaScript:const { default: makeWASocket, downloadContentFromMessage, } = require("@adiwajshing/baileys"); async function parseIncomingMessage(msg) { const type = Object.keys(msg.message || {})[0]; const body = type === "conversation" && msg.message.conversation ? msg.message.conversation : type == "imageMessage" && msg.message.imageMessage.caption ? msg.message.imageMessage.caption : type == "videoMessage" && msg.message.videoMessage.caption ? msg.message.videoMessage.caption : type == "extendedTextMessage" && msg.message.extendedTextMessage.text ? msg.message.extendedTextMessage.text : type == "messageContextInfo" && msg.message.listResponseMessage?.title ? msg.message.listResponseMessage.title : type == "messageContextInfo" ? msg.message.buttonsResponseMessage.selectedDisplayText : ""; const d = body.toLowerCase(); const command = await removeForbiddenCharacters(d); const senderName = msg?.pushName || ""; const from = msg.key.remoteJid.split("@")[0]; //const me = sock.user.id.split(':')[0];0; let bufferImage; if (type === "imageMessage") { const stream = await downloadContentFromMessage( msg.message.imageMessage, "image" ); let buffer = Buffer.from([]); for await (const chunk of stream) { buffer = Buffer.concat([buffer, chunk]); } bufferImage = buffer.toString("base64"); } else { urlImage = null; } return { command, bufferImage, from, senderName}; }
how ? can you guide me
the path for the css is the issue /asset/css i believe checkhello
I am asking people of good will to help me.
i installed the script on my cPanel but the display is not clean
what should I do?
Or is it just me who has this problem?
It's not that I don't want to help, but it's not easy, you need to unpack a lot of files.how ? can you guide me
I am nodejs and Laravel developer I already make some changes , just tell me which class or file and function I have change , I will do it myself , just needed guideline or if you can kindly share codeIt's not that I don't want to help, but it's not easy, you need to unpack a lot of files.
The get and post methods are not influenced by whatsapp.js, you can check in folder router for more info@cloud dark , I am facing one problem when i try to click on api/create-message previously it was working fine after updating ur whatsapp.js version unable to send message from Ultimate pos any pointers?
The GET method is not supported for route api/create-message. Supported methods: POST.
I'm also looking for this, since I can't find on the docs.Please show me how i can use the API
Facing the same issue, were you able to solve it?hello
I am asking people of good will to help me.
i installed the script on my cPanel but the display is not clean
what should I do?
Or is it just me who has this problem?
thank you for thisbentacos submitted a new resource:
WASender - Whatsapp server and bulk sender (SAAS). - Download FREE WASender - Whatsapp server and bulk sender (SAAS). Nulled CodeCanyon 44936224
Read more about this resource...
bro, name of the source code file for changing currency $ USD to IDR and where is it in the file?Ready prev post
Translate : ojok males dadi mengungsi.
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.