yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

old_version

Open antonio199205 opened this issue 2 years ago • 27 comments

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 avatar Oct 22 '22 02:10 antonio199205

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'

antonio199205 avatar Oct 22 '22 17:10 antonio199205

Same thing here

dyahav3 avatar Oct 24 '22 09:10 dyahav3

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

antonio199205 avatar Oct 24 '22 14:10 antonio199205

image

image

antonio199205 avatar Oct 24 '22 14:10 antonio199205

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

madduck avatar Oct 24 '22 15:10 madduck

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

antonio199205 avatar Oct 24 '22 15:10 antonio199205

Thanks. This should be merged into #3156

madduck avatar Oct 24 '22 15:10 madduck

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

madduck avatar Oct 24 '22 15:10 madduck

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

madduck avatar Oct 24 '22 15:10 madduck

8Fz9R1yOYocVWtGWahVYBw== 2.22.21.83

try with this one madduck

antonio199205 avatar Oct 24 '22 18:10 antonio199205

if it works let me know

antonio199205 avatar Oct 24 '22 18:10 antonio199205

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)

madduck avatar Oct 24 '22 20:10 madduck

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

antonio199205 avatar Oct 24 '22 20:10 antonio199205

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

madduck avatar Oct 25 '22 08:10 madduck

@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!

dazzzl avatar Oct 25 '22 22:10 dazzzl

yeah @dazzzl, g.... editing.

madduck avatar Oct 26 '22 05:10 madduck

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

kushagra9967 avatar Oct 26 '22 18:10 kushagra9967

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

antonio199205 avatar Oct 26 '22 19:10 antonio199205

@antonio199205 : i have messaged you on telegram

kushagra9967 avatar Oct 26 '22 20:10 kushagra9967

kushagra9967 https://t.me/sac_store24h

antonio199205 avatar Oct 26 '22 20:10 antonio199205

@antonio199205 : i have already messaged. Please Check

kushagra9967 avatar Oct 27 '22 07:10 kushagra9967

xvHJS7OwkFzSCemQ0VX8cg== 2.22.22.80

antonio199205 avatar Nov 06 '22 23:11 antonio199205

2.22.23.84 Qc0kUxteJdDJSpeLPeHMKQ==

antonio199205 avatar Nov 22 '22 00:11 antonio199205

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'

FkyMouse avatar Nov 27 '22 22:11 FkyMouse

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

ChowSings avatar Dec 22 '22 05:12 ChowSings

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

marcossilva37 avatar Dec 22 '22 14:12 marcossilva37

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'

theunf avatar Apr 22 '23 14:04 theunf