whatsapp-gpt
whatsapp-gpt copied to clipboard
the answers of chatgpt dont appear in the whatsappchat
They do. Except:
- your own.
- Users once activated disappearing messages. Even they deactivate it, they never get a reply again.
- Users used "reply to message"-function of WhatsApp, or submit an attachment. Like hyperlink with preview.
In my fork is it repaired. Outdated whatsapp-lib.
In my fork is it repaired. Outdated whatsapp-lib.
Great, but how to "upgrade"? I tried it, but I get errors in "go", like: main.go:23:2: missing go.sum entry for module providing package go.mau.fi/whatsmeow/types/events; to add: go mod download go.mau.fi/whatsmeow
Maybe I'm naive, but I have no idea what to do now.
Because the 500-error, you could do a "refresh" inside the browser to reload the page's content before pushing the new message inside. In that case I have to make sure, that the chat is opened at the specific chat, and not on the "new chat tab".
In my case, sometimes messages are very long, so I did a split-up to 100-words + words to the next .!?\n with iterating through the original message. Delivering n+ messages back. I also added a context-id which helps chatGPT to keep these split-messages' context together. - All with the help of ChatGPT, because I have no Idea of programming.
For the length, you would have to look in the code. But regarding the error during the update, here changes had to be made to the code. There were breaking changes in the Whatsapp client.
If you have the error 500 after a certain time, you just have to look again whether you are logged in or whether a Cloudflare Captcha appears.
For the length, you would have to look in the code. But regarding the error during the update, here changes had to be made to the code. There were breaking changes in the Whatsapp client.
If you have the error 500 after a certain time, you just have to look again whether you are logged in or whether a Cloudflare Captcha appears.
Thx for your reply. I already implemented some of these things. The "Browser refresh" helps to avoid Error 500, because the internal token system of ChatGPT gets a new token through the refresh. I split the messages, in chunks of 100 words + rest to the next ".", "!", "?" or "\n". Works fine. So, longer Messages are replied with n messages. I also embed the WhatsApp-Message inside a pre-defined priming for ChatGPT, to aim special behavior.
I will upgrade my version to your version within the next week. I thing it will be better. Let's see! It's amazing!
Currently I am also working on an automatic login. Cloudflare Captcha Solving I could not test yet.