yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Getting fail status

Open niravtrivedi opened this issue 11 years ago • 4 comments

Hi

(1) I'm running below command to get registration code. cmd : ./yowsup-cli registration --requestcode sms --config mywhatsup.config Outpur : INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

(2) i'm little bit confuse, using below example to send media what should in stack file https://github.com/tgalal/yowsup/wiki/Yowsup2:-Upload-and-send-Media

please help me where i m wrong .

Nirav

niravtrivedi avatar May 02 '15 17:05 niravtrivedi

i solved the first issue, upgrading yowsup from git (git clone .. python setup.py install) instead of pip install --upgrade

Gurzo avatar May 02 '15 18:05 Gurzo

@niravtrivedi needs to contain YowMediaProtocolLayer. Something like this is sufficient:

stack = YowStackBuilder().pushDefaultLayers(encryptionEnabled).push(yourLayer).build()

tgalal avatar May 03 '15 01:05 tgalal

@Gurzo thanks for quick response @tgalal thank you too for quick response and give valuable, Ok i'll try with this. What i had done : updated code in demos->sendclient->layer.py added code for send media (copied from demos->cli) and keep stack.py unchanged but getting media sending error.

I could finish this will mail example code.

niravtrivedi avatar May 03 '15 18:05 niravtrivedi

@all thanks for quick response

Will re-open issue if need more help

niravtrivedi avatar May 05 '15 14:05 niravtrivedi