Jump to content

Recommended Posts

u know what. i just updated from 5.5.2 to 5.5.0 directly. not fresh install. first install the version 5.2.0 then do the following step. replace only this code from source of 5.5.0

  • package.json
  • resources/views/pages/api-docs (FOLDER)
  • routes/api.php
  • app/Http/Controllers/Api/ApiController.php
  • app/Http/Requests/SendMessageRequest.php
  • app/Http/Controllers/MessagesController.php
  • app/Services/Impl/WhatsappServiceImpl.php
  • app/Services/WhatsappService.php
  • resources/views/ajax/messages/formpoll.blade.php (add this)
  • resources/views/pages/messagetest.blade.php
  • server/controllers/index.js
  • server/router/index.js
  • server/whatsapp.js
  • server/controllers/incomingMessage.js

and all the buggy is gone. everything work like a charm

4 hours ago, SHIEVIP said:

@Magd Almuntaser Why when i edited like footer, meta tag, header and title Auto reply be not working?? and i found the problem. I already copy ur old script for autoreply in comment but here is the problem and i don't know how to fix it.

 

{"text":"Hai"} should be {text:"Hai"} but i don't know how to fix it again. please help me

 

Screenshot(295).thumb.png.bae4eae4d0efb90805f2966a1e5afeb3.png


yes that's why i parse json 2 times to fix this problem .. 
so you need to install this version i've decoded and fix this problem:

easyupload .io/3j7cjg

Remove space from link.

about the problem with autoreply when you change the footer and header i think 2 problem ..
the first one is you save the file with another charset so you need to use notepad++ editor to edit the files ..
the second one you can try after you change the footer and header and autoreply edit the file incomingMessage.js in line 84 replace:
 

.sendMessage(_0x292a07.key.remoteJid, JSON.parse(JSON.parse(_0x327fda)), {

to

.sendMessage(_0x292a07.key.remoteJid, JSON.parse(_0x327fda), {

i advice you to try the first .. if not you can try the second ..

  • Care 1
On 8/23/2023 at 2:46 AM, Magd Almuntaser said:


yes that's why i parse json 2 times to fix this problem .. 
so you need to install this version i've decoded and fix this problem:

easyupload .io/3j7cjg

Remove space from link.

about the problem with autoreply when you change the footer and header i think 2 problem ..
the first one is you save the file with another charset so you need to use notepad++ editor to edit the files ..
the second one you can try after you change the footer and header and autoreply edit the file incomingMessage.js in line 84 replace:
 

.sendMessage(_0x292a07.key.remoteJid, JSON.parse(JSON.parse(_0x327fda)), {

to

.sendMessage(_0x292a07.key.remoteJid, JSON.parse(_0x327fda), {

i advice you to try the first .. if not you can try the second ..

Okey i try the first and solved but i have 1 problem again sir. After a few hour from scan and connected why i always disconnect again? this like have a problem with session. Can u help me with this problem?

2 hours ago, SHIEVIP said:

Okey i try the first and solved but i have 1 problem again sir. After a few hour from scan and connected why i always disconnect again? this like have a problem with session. Can u help me with this problem?

Lu hosting dimana sih bang? Kok rempong bener dah servernya

2 hours ago, SHIEVIP said:

Okey i try the first and solved but i have 1 problem again sir. After a few hour from scan and connected why i always disconnect again? this like have a problem with session. Can u help me with this problem?

Sometime the problem from server and sometime from whiskeysockets lib and sometime from whatsapp
so the sloution is download (forever app) in your server .. to install forever:
 

npm install forever -g

and go to your script path and run:
 

forever start server.js


node will be run background and never disconnect .. when your session will finish the forever app will connect again directly

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