Jump to content
Get 20% off with our White Friday Deal🥳 ×

Whatsapp Gateway | Multi Device v8.5.1


Magd Almuntaser

Recommended Posts

3 hours ago, Hit Solanki said:

APP_NAME=MPWA
APP_ENV=local
APP_KEY=base64:PxGRSZnMJVvMO7erMUXd683lMJwYFWpdxufKRbugeq8=
APP_DEBUG=true
APP_URL=https://apiwh.cryptoapi.shop
WA_URL_SERVER=http://apiwh.cryptoapi.shop
PORT_NODE=3100
APP_INSTALLED=true
LICENSE_KEY=MagdAlmuntaser-ttmtt
BUYER_EMAIL=admin@doniaweb.com
TYPE_SERVER=hosting
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=xxx
DB_USERNAME=xxx
DB_PASSWORD=xxx
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
CHATGPT_URL=https://api.openai.com/v1/chat/completions
CHATGPT_MODEL=gpt-3.5-turbo
GEMINI_URL=https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent
CLAUDE_URL=https://api.anthropic.com/v1/messages
CLAUDE_MODEL=claude-3-sonnet-20240229
DALLE_SIZE=256x256
DALLE_URL=https://api.openai.com/v1/images/generations
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
PORT = 3000
AUTH =mpedia-server-uUdkfgli783pkfnlaskogoighr
THEME_NAME=mpwa
ORIGIN =http://localhost
WEBHOOK =
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=xxx
MAIL_PASSWORD=xxx
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=xxxxxx@gmail.com
MAIL_FROM_NAME=MPWA

try http in APP_URL

Link to comment
Share on other sites

can anyone help me, I have changed .env https to http but every time I update it always becomes https.

then why am I already using node js version 20 but the port doesn't work, coincidentally I'm using arenhost and using cpanel

Screenshot (7).png

can anyone help?

Edited by Rafif Epic
Link to comment
Share on other sites

Solusi MPWA, WASender dan sejenisnya...!

1. Ikuti panduan instalasi dari Guru Kita Master @Magd Almuntaser

2. Gunakan hosting yg nod.js nya stabil

3. Gunakan Hosting yg menyediakan Terminal untuk mengaktifkan PM2 (minimal Harga 5.000/bulan)

4. Jika menggunakan hosting yg tidak menyediakan Terminal gunakan v7.009 atau v8.00 PHP8.2(ea) Node.js sesuai yg direkomendasikan pihak hosting.

5. Jika QR belum muncul:

✓ Cek apakah sudah generate Api?

✓ Cek apakah sudah memilih shared hosting 

✓ Apakah sudah centang hijau (terhubung dan berjalan dengan baik)

✓ Jika blm terhubung pilih port yang sesuai 3100/3000/3120

Maaf, itu hanya berdasarkan pengalaman pribadi saya aja.

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

On 10/30/2024 at 11:14 PM, WhatsAPI Info said:

Hi @Magd Almuntaser,

can you please add below mestion function/code to working button messages


let msgButton = generateWAMessageFromContent(m.chat, { viewOnceMessage: { message: { 
"messageContextInfo": { 
"deviceListMetadata": {}, 
"deviceListMetadataVersion": 2
}, 
interactiveMessage: proto.Message.InteractiveMessage.create({
contextInfo: { 
mentionedJid: [m.sender], 
externalAdReply: {
showAdAttribution: true }
}, body: proto.Message.InteractiveMessage.Body.create({ 
text: 'Message Here'
}), 
footer: proto.Message.InteractiveMessage.Footer.create({ 
text: 'footer here'
}), 
header: proto.Message.InteractiveMessage.Header.create({ 
hasMediaAttachment: true, ...(await prepareWAMessageMedia({ image: await fs.readFileSync("Image Path Here")}, { upload: sock.waUploadToServer })) 
}), 
nativeFlowMessage: proto.Message.InteractiveMessage.NativeFlowMessage.create({ 
buttons: [
{"name": "quick_reply","buttonParamsJson": `{\"display_text\":\"Button-1\",\"id\":\"Button_1\"}`},
{"name": "quick_reply","buttonParamsJson": `{\"display_text\":\"Button-2\",\"id\":\"Button_2\"}`},
{"name": "quick_reply","buttonParamsJson": `{\"display_text\":\"Button-3\",\"id\":\"Button_3\"}`},
{"name": "cta_url","buttonParamsJson": `{\"display_text\":\"Button-url\",\"url\":\"https://https://www.google.com\",\"merchant_url\":\"https://www.google.com\"}`}
]
}) 
})} 
}}, {userJid: m.sender, quoted: qchanel}) 
await sock.relayMessage(msgButton.key.remoteJid, msgButton.message, { 
messageId: msgButton.key.id 
})

Thanks !!

what was is this mate?

Link to comment
Share on other sites

1 minute ago, ekkybaihaqi said:

Iya harus bener" pas nyetingnya supaya QR nya muncul hehe. Udah reinstall 8x baru normal

buced banyak bener itu Om. tapi biasanya gitu yang bikin penasaran dah. Wkwkwk, tapi seneng dan lega kalau dah sukses mah.
Ini aj install di vps juga kadang ada aja. Cuma ya paling engga sukses salah ketik atau apa lah kadang suka ketinggalan wkwk.

Link to comment
Share on other sites

7 minutes ago, adhiete said:

buced banyak bener itu Om. tapi biasanya gitu yang bikin penasaran dah. Wkwkwk, tapi seneng dan lega kalau dah sukses mah.
Ini aj install di vps juga kadang ada aja. Cuma ya paling engga sukses salah ketik atau apa lah kadang suka ketinggalan wkwk.

Iya om reinstall v7-v8.5.1 kadang QR pertamakali muncul trus selanjutnya gamuncul lagi kadang setelah konek QR harusnya muncul Logout malah nemu error log tapi sudah tau cara installnya jadi aman 😅

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...