tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.09k stars 2.23k forks source link

old_version #3172

Open antonio199205 opened 2 years ago

antonio199205 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Same thing here

antonio199205 commented 2 years ago

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

antonio199205 commented 2 years ago

image

image

madduck commented 2 years ago

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

antonio199205 commented 2 years ago

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

madduck commented 2 years ago

Thanks. This should be merged into #3156

madduck commented 2 years ago

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

madduck commented 2 years ago

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 commented 2 years ago

8Fz9R1yOYocVWtGWahVYBw== 2.22.21.83

try with this one madduck

antonio199205 commented 2 years ago

if it works let me know

madduck commented 2 years ago

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: https://github.com/tgalal/yowsup/issues/3157#issuecomment-1193663427

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

antonio199205 commented 2 years ago

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

madduck commented 2 years ago

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

dazzzl commented 2 years ago

@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 commented 2 years ago

yeah @dazzzl, g.... editing.

kushagra9967 commented 2 years ago

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

antonio199205 commented 2 years ago

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 commented 2 years ago

@antonio199205 : i have messaged you on telegram

antonio199205 commented 2 years ago

kushagra9967 https://t.me/sac_store24h

kushagra9967 commented 2 years ago

@antonio199205 : i have already messaged. Please Check

antonio199205 commented 2 years ago

xvHJS7OwkFzSCemQ0VX8cg== 2.22.22.80

antonio199205 commented 2 years ago

2.22.23.84 Qc0kUxteJdDJSpeLPeHMKQ==

FkyMouse commented 2 years ago

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 commented 1 year ago

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

marcossilva37 commented 1 year ago

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 commented 1 year ago

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'