Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the answers of chatgpt dont appear in the whatsappchat #74

Open
doenertrinker909 opened this issue Apr 18, 2023 · 6 comments
Open

the answers of chatgpt dont appear in the whatsappchat #74

doenertrinker909 opened this issue Apr 18, 2023 · 6 comments

Comments

@doenertrinker909
Copy link

No description provided.

@MeinDeutschkurs
Copy link

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.

@Huskynarr
Copy link

In my fork is it repaired. Outdated whatsapp-lib.

@MeinDeutschkurs
Copy link

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.

@Huskynarr
Copy link

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.

@MeinDeutschkurs
Copy link

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!

@Huskynarr
Copy link

Currently I am also working on an automatic login. Cloudflare Captcha Solving I could not test yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants