stv0g / transwhat

A gateway between the XMPP and the WhatsApp IM networks
https://dev.0l.de/wiki/projects/transwhat/
GNU General Public License v3.0
122 stars 25 forks source link

yowsup 3.0 #96

Open dbtech48 opened 5 years ago

dbtech48 commented 5 years ago

Is there any chance that we can get transwhat working with the all new version 3.0 (3.1.0 right now) of the yowsup library?

tgalal again put a lot of effort in yowsup and it would be really awesome to get transwhat working with the new version.

I know that there hasn't been much activity in this project since some time, but at least I won't abandon hope.

Thanks

stv0g commented 5 years ago

Hi, that's great news. I was about to abandon transWhat due to the issues we had in the past with yowsup. I think we should start an collaborative effort to fix transWhat. I will look into it in a few days.

Pull requests are very welcome!

stv0g commented 5 years ago

Worked started here: https://github.com/stv0g/transwhat/tree/yowsup-3

dazzzl commented 5 years ago

Hey Steffen,

thanks for continue developing transwhat ... What is the status of the branch yowsup-3? I got the following error message:

ModuleNotFoundError: No module named 'main.whatsappbackend'; 'main' is not a package

stv0g commented 5 years ago

Hi @dazzzl,

it's currently a work in progress. I will expect to push a first version by the weekend.

I am (again) becoming discouraged by getting my numbers banned :( Any volunteers or ideas which could provide numbers for testing?

dazzzl commented 5 years ago

you can use https://www.textnow.com/ with voice registration.

eehome commented 5 years ago

Any volunteers or ideas which could provide numbers for testing?

https://sms-reg.com/
This service is specifically designed to receive sms-codes for new unique phone numbers for various services, including whatapp for a reasonable fee. Ready to make some funds on the account of the specified service, after you sign up. ( I use numbers for the region of Russia (my region) )

eehome commented 5 years ago

look forward to working commit

github-k8n commented 4 years ago

Has there been any update on this?

I was able to successfully register with yowsup 3.2.3 (did not yet test communication) but I'd like to be able to actually use it to communicate with whatsapp users using my jabber server :) I guess due to the fact that the new authentication with the client_static_keypair and other required details this might require some kind of rewrite of transwhat and the way the whatsapp credentials are submitted/stored?

Oh and by the way, the DNS SRV entries for the jabber server used on 0l.de are wrong, it seems you specified the target as "xmpp.0l.de" but forgot to add a dot at the end (thus it is adding 0l.de again): _xmpp-server._tcp.0l.de. 86400 IN SRV 0 1 5269 xmpp.0l.de.0l.de.

You might want to add a dot at the end of the entry to ensure it uses the entry as absolute record (or just enter "xmpp" in your config to let it automatically add "0l.de"

With the current DNS entries nobody would be able to join unless they have an account on that server and manually specify the xmpp server...

arkkors commented 3 years ago

i am considering to start working on this, are you taking merge requests?

stv0g commented 3 years ago

Hi @arkkors, yes for sure :)

arkkors commented 3 years ago

great to hear that :) can you tell me what still needs to be done? i skimmed through the sources and afaik only transwhat.yowsupwrapper needs to be changed, or is there anything else that needs work?

as a sidenote, i also saw asynccore imports here and there. is there any reason why asyncio is not used? i am not entirely sure, but on a first glance the whole logic in transwhat.deferred could be replaced with asyncio.Futures

arkkors commented 3 years ago

apparently yowsup's master branch is currently broken, at least i could not the cli to start up properly. related issue is https://github.com/tgalal/consonance/issues/6