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

Notify on telegram side when whatsapp requires auth #23

Closed
NicKoehler opened this issue Apr 19, 2023 · 7 comments
Closed

Notify on telegram side when whatsapp requires auth #23

NicKoehler opened this issue Apr 19, 2023 · 7 comments

Comments

@NicKoehler
Copy link

I installed this on a Raspberry Pi 4 and set up a service to run it. Sometimes, the application asks for the QR code again, but it's hard to notice since I wasn't checking the service, and I have no way to do so without connecting to the Raspberry Pi to check if the service is asking for the QR code.

Is it possible to add a notification on the Telegram side when WhatsApp isn't authenticated correctly to make it more noticeable?

Thanks in advance for your great job!

@akshettrj
Copy link
Owner

Yeah, it might be possible. I will look into it

Did you switch off your original WhatsApp device? Because I think WhatsApp wants the primary device to come online every few days

@NicKoehler
Copy link
Author

Most likely what you said is correct because my WhatsApp is under advanced suspension. I don't want to use it, receive notifications from it, or have it drain my battery

@akshettrj
Copy link
Owner

It would make my task easier if you could answer some questions for me:

  1. Does the QR code reappear after the bot restarts (which happens automatically every 24 hours if you are using the provided systemd service file), or is the QR code emitted during a running instance as well?

  2. If it happens during a running instance, can you add some debugging statements in line 32 to check what events are emitted when this happens?

Maybe add fmt.Println(reflect.TypeOf(evt)) in line 32

@NicKoehler
Copy link
Author

I don't know if is stopping after restarting or while running, how do I check this?

@akshettrj
Copy link
Owner

Is it printing the QR code when this happens, or some other error ?

@NicKoehler
Copy link
Author

It just prints the qr code, no errors

@NicKoehler
Copy link
Author

Thank you very much for this update!

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

2 participants