tgalal / yowsup

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

Authentication Error: not-authorized #1636

Closed josep112 closed 8 years ago

josep112 commented 8 years ago

Hello, I am using the following line in cli to send: ./yowsup-cli demos -c / usr / src / yowsup-master / config -s "55179XXXXXXX" "OK"

The problem is that after a few messages I get the message Authentication Error: not-authorized and the chip is locked, any idea what can be?

jlguardi commented 8 years ago

You need to generate your keys before sending any message.

Use "yowsup-cli ‎demos -y"‎ and type "/L" for first login and wait until reboot.

josep112 commented 8 years ago

I will be the keys, did this procedure, this happens after sending some messages

schoerg commented 8 years ago

Don't send messages to people who are not in your contact list and vice versa.

josep112 commented 8 years ago

It is possible to test whether the phone is in your contact list before sending the message?

josep112 commented 8 years ago

I use Whatsapp to send information from an automation system, the problem is that the message is always the same what are the steps to occur not blocking the number?

thundergreen commented 8 years ago

Use xmpp

Thorsten Fröhlich Am 08.06.2016 13:19 schrieb "José Antonio" notifications@github.com:

I use Whatsapp to send information from an automation system, the problem is that the message is always the same what are the steps to occur not blocking the number?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tgalal/yowsup/issues/1636#issuecomment-224560313, or mute the thread https://github.com/notifications/unsubscribe/AMtAfxt9vh3qs39BIU6grUbJE7BXlsEyks5qJqUmgaJpZM4Iv0LF .

josep112 commented 8 years ago

Thank you, such as sending XMPP?

jlguardi commented 8 years ago

Every encrypted message differs from the previous ones so, it shouldn't be a problem.

josep112 commented 8 years ago

Olá jlguardi, It is possible in yowsup-cli already encrypted? Have any examples?

schoerg commented 8 years ago

It is encrypted by default. -M is the switch for UNencrypted messages.

josep112 commented 8 years ago

No success yet. I am sending my messages with the command: ./yowsup-cli demos -c config -s "55179XXXXXXXX" "Message ok" but I number is blocked mainly seemed that not by quantity but by message time after a 1-hour it is blocked. I put the number in the phone book that will receive and still blocks, any idea how to solve this?

jlguardi commented 8 years ago

Don't use -s command but -y to be sure about correct acks, keys or other packages management.

josep112 commented 8 years ago

Hi Jiguardi, With If the error below:

./yowsup-cli demos -c ./config -y "55179XXXXXXXX" "Message ok" usage: demos [-h] [-v] [-d] [--help-config] [-l phone:b64password | -c CONFIG] [-E {android,s40}] [-M] [-y] [-e] [-s phone message] [-S contacts] demos: error: unrecognized arguments: 55179XXXXXXX Message ok

josep112 commented 8 years ago

Hi I looked all over google and not found the option -y my numbers CONTINUED blocking someone has some light?

schoerg commented 8 years ago

Command line interface demo: -y, --yowsup Start the Yowsup command line client

josep112 commented 8 years ago

sorry ignorance but how do it?

schoerg commented 8 years ago

./yowsup-cli demos -y -l phone:pwd

Also second answer from the top.

jlguardi commented 8 years ago

I error persists, open a new issue.