joaoricardo000 / whatsapp-bot-seed

A small python framework to create a whatsapp bot, with regex-callback message routing.
727 stars 245 forks source link

can i use the bot and yowsup-cli together at the same time/number? #31

Closed x23piracy closed 8 years ago

x23piracy commented 8 years ago

Hi,

i need to trigger external message event for this i wanna use yowsup-cli but i am not clear with the bot and yowsup-cli itself.

Can i use the bot and yowsup together at the same time with the same account? If yes is it only one time needed to register and after this i just can use the credentials?

Is the bot using yowsup with its own credentials file or will it store credentials to yowsup?

Regards X23

ghost commented 8 years ago

You can use yowsup-cli and the bot with the same credentials, but, you can't use yowsup-cli if the bot is running, the bot will stop working

x23piracy commented 8 years ago

Hi,

this is why we need a way to send messages by external event with the bot...

but this will not block the number? I was trying to register two different number with yowsup-cli and they are now blocked, with the last number i also tested after an update to latest version of yowsup2.

The first number is now blocked the other will not succeed to register, i get temp unavail try again 3600 or longer times.

Iam also confused with the 6 digit code, must it be entered 123456 or 123-456?

Regards X23

ghost commented 8 years ago

You can't registry another number with the same ip address, thats why you get banned with another number

The registration is right now temporary unavailable, i don't know why

The 6 digit code is: XXXXXX (without dashes)

x23piracy commented 8 years ago

Hi,

when i register on a different system and migrate credentials to yowsup to the same system thats using other credentials with the bot already, will this work?

joaoricardo000 commented 8 years ago

@x23piracy Yes, the credentials work fine across systems. @montemarcaldera, another way to get the credentials is registering whatsapp normally in a cellphone, and getting the password using this apk: https://github.com/mgp25/Chat-API/wiki/Extracting-password-from-device#using-apk

That is probably the most stable way to get the credentials. The android have to be rooted though.

x23piracy commented 8 years ago

Hi,

have it working now with 2 different numbers. i hope that we have a simpel solution to trigger messages from external with this bot (not with rabbitmq).

For number registration i have a free sip provider where i can freely create or delete up to 10 sip accounts so i can easily get new credentials.

Regards X23