Jump to content

Recommended Posts

24 minutes ago, app sterida said:

Saya pakai arenhost dan berjalan normal hanya saja kasusnya sering logout sendiri jika lama tidak digunakan 

Tidak logout, tapi APInya gak jalan, tp untuk auto reply tetap jalan, untuk mengaktifkan api nya harus tes pesan dulu baru apinya bisa jalan kembali

5 hours ago, pak kacung said:

Tidak logout, tapi APInya gak jalan, tp untuk auto reply tetap jalan, untuk mengaktifkan api nya harus tes pesan dulu baru apinya bisa jalan kembali

Iya benar. Auto reply masih bekerja. Agar api nya tetap jalan adakah cara lainnya. Saya Sambung kan dengan cron job tetap sama saja hasilnya 

Edited by app sterida
9 hours ago, pak kacung said:

Tidak logout, tapi APInya gak jalan, tp untuk auto reply tetap jalan, untuk mengaktifkan api nya harus tes pesan dulu baru apinya bisa jalan kembali

biasanya karena shared hosting ini, untuk simpan resources biasanya tidak active standby nodejs nya. kadang di sleep

4 hours ago, app sterida said:

Iya benar. Auto reply masih bekerja. Agar api nya tetap jalan adakah cara lainnya. Saya Sambung kan dengan cron job tetap sama saja hasilnya 

biasanya karena shared hosting ini, di cron job in kirim cUrl aj mungkin bisa.

On 10/29/2024 at 9:14 AM, Jei Grey said:

saya pakai versi 8.0.0 Node.js v 16.20.2 sudah semingguan tidak ada DC / logout

yoih Om, di 8.5.1 aj normal2 aja ini. biasa ya kalau putus atau DC2, biasanya resourcesnya kurang.

 

  • Thanks 1

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 !!

Edited by WhatsAPI Info
code updated

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

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...