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

old_version #3172

Open
antonio199205 opened this issue Oct 22, 2022 · 27 comments
Open

old_version #3172

antonio199205 opened this issue Oct 22, 2022 · 27 comments
Assignees

Comments

@antonio199205
Copy link

W 2022-10-21 23:43:01,999 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
I 2022-10-21 23:43:02,288 yowsup.common.http.warequest - b'{"login":"55629xxxxxx","reason":"old_version","status":"fail"}\n'
status: b'fail'
reason: b'old_version'
login: b'55629xxxxxx'

@antonio199205
Copy link
Author

I switched to ios but I get this error

Traceback (most recent call last):
File "c:\Users\Anton\AppData\Local\Programs\Python\Python310\Scripts\yowsup-cli", line 4, in
import('pkg_resources').run_script('yowsup==3.3.0', 'yowsup-cli')
File "c:\Users\Anton\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init_.py", line 672, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "c:\Users\Anton\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init_.py", line 1472, in run_script
exec(code, namespace, namespace)
File "c:\users\anton\appdata\local\programs\python\python310\lib\site-packages\yowsup-3.3.0-py3.10.egg\EGG-INFO\scripts\yowsup-cli", line 5, in
from yowsup.env import YowsupEnv
File "c:\Users\Anton\AppData\Local\Programs\Python\Python310\lib\site-packages\yowsup-3.3.0-py3.10.egg\yowsup\env_init_.py", line 2, in
from .env_ios import iOsYowsupEnv
ModuleNotFoundError: No module named 'yowsup.env.env_ios'

@dyahav3
Copy link

dyahav3 commented Oct 24, 2022

Same thing here

@antonio199205
Copy link
Author

I managed to make it work, I updated the whatsapp constants, I just don't know how to send a message

@antonio199205
Copy link
Author

image

image

@madduck
Copy link

madduck commented Oct 24, 2022

@antonio199205 could you please tell us what constants you updated? Maybe this library is unmaintained and needs a fork?

@antonio199205
Copy link
Author

_MD5_CLASSES = "jJYkDZJ+SGfBMvlEeGKmSw=="
_VERSION = "2.22.19.76"

@madduck
Copy link

madduck commented Oct 24, 2022

Thanks. This should be merged into #3156

@madduck
Copy link

madduck commented Oct 24, 2022

@antonio199205 could you please also share how you derived those new data?

@madduck
Copy link

madduck commented Oct 24, 2022

Using those constants successfully got my burner phone registered. However, trying to use the demo client, I cannot seem to get connected:

Yowsup Cli client
==================
Type /help for available commands

[offline]:/L
I 2022-10-24 17:16:00,540 yowsup.layers.network.layer - Connecting to e3.whatsapp.net:443
I 2022-10-24 17:16:00,558 yowsup.axolotl.manager - Generating 812 prekeys, current max_prekey_id=0
I 2022-10-24 17:16:00,816 yowsup.axolotl.manager - Storing 812 prekeys
I 2022-10-24 17:16:06,647 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected: 
[offline]:/ping

Error: Not connected

@antonio199205
Copy link
Author

8Fz9R1yOYocVWtGWahVYBw==
2.22.21.83

try with this one
madduck

@antonio199205
Copy link
Author

if it works let me know

@madduck
Copy link

madduck commented Oct 24, 2022

It worked for me with

_MD5_CLASSES = "jJYkDZJ+SGfBMvlEeGKmSw=="
_VERSION = "2.22.19.76"

after I replaced all endpoints in constants.py with g.whatsapp.net, as suggested here: #3157 (comment)

It also works with the values you suggested above (2.22.21.83)

@antonio199205
Copy link
Author

ok, whenever i need constant whatsapp i have something else how do i send a message to a number

@madduck
Copy link

madduck commented Oct 25, 2022

You can use the demo client to send a message, or write some Python. It's documented on the Wiki.

@dazzzl
Copy link

dazzzl commented Oct 25, 2022

@madduck
It does not work for me... I got <failure reason="401" location="atn">

What have you modified except the modification above?

BTW r.whatsapp.net does not work... should be g.whatsapp.net?

Thanks!

@madduck
Copy link

madduck commented Oct 26, 2022

yeah @dazzzl, g.... editing.

@kushagra9967
Copy link

kushagra9967 commented Oct 26, 2022

@madduck @antonio199205 can we send images using yowsup . I am not able to send any media . Can u please help me ?

@antonio199205
Copy link
Author

kushagra9967 I don't know how it works, I don't even know how to send a simple text message, but I have developers to work on this project, if anyone has the code developer's contact and wants to let me know, I have a good proposal for him to update the code

@kushagra9967
Copy link

@antonio199205 : i have messaged you on telegram

@antonio199205
Copy link
Author

@kushagra9967
Copy link

@antonio199205 : i have already messaged. Please Check

@antonio199205
Copy link
Author

xvHJS7OwkFzSCemQ0VX8cg==
2.22.22.80

@antonio199205
Copy link
Author

2.22.23.84
Qc0kUxteJdDJSpeLPeHMKQ==

@FkyMouse
Copy link

FkyMouse commented Nov 27, 2022

Version: 2.22.23.85
ClassesDex: YgGFYlBVxzteZp1oO+v28w==

But it still does not work
what can do with it. cant make a registration
status: b'fail' reason: b'old_version' login: b'7904XXXXXXX'

@ChowSings
Copy link

change the file /env/env_android.py
_MD5_CLASSES = "fJdJ2pZOVbYYjN+D8g8mUQ=="
_VERSION = "2.22.24.76"
Tool: dexMD5.py

@marcossilva37
Copy link

marcossilva37 commented Dec 22, 2022

change the file /env/env_android.py _MD5_CLASSES = "fJdJ2pZOVbYYjN+D8g8mUQ==" _VERSION = "2.22.24.76" Tool: dexMD5.py

is working for you?

i tried the newest, but does not work

Version: 2.22.24.79
ClassesDex: aB7TRBP7/nT6KypPakIupw==

image

@theunf
Copy link

theunf commented Apr 22, 2023

change the file /env/env_android.py _MD5_CLASSES = "fJdJ2pZOVbYYjN+D8g8mUQ==" _VERSION = "2.22.24.76" Tool: dexMD5.py

BTW, if I do these changes the error changes to :

W 2023-04-22 11:09:06,500 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
I 2023-04-22 11:09:07,600 yowsup.common.http.warequest - b'{"email_otp_wait":65,"flash_type":1,"length":6,"login":"XXXXXXXXX","method":"sms","notify_after":86400,"retry_after":125,"sms_wait":125,"status":"sent","voice_wait":125,"wa_old_wait":65}\n'
Traceback (most recent call last):
File "/usr/local/bin/yowsup-cli", line 679, in
if not parser.process():
File "/usr/local/bin/yowsup-cli", line 350, in process
self.handleRequestCode(self.args["requestcode"], config)
File "/usr/local/bin/yowsup-cli", line 369, in handleRequestCode
self._config_manager.save(self._config)
TypeError: save() missing 1 required positional argument: 'config'

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

10 participants