Open lautiisca opened 4 years ago
On Linux after registration these config file lays here ~/.config/yowsup/<your_phone_number>
You should modify yor run.py
like here
class MacStack(object):
def __init__(self, profile):
stackBuilder = YowStackBuilder()
self._stack = stackBuilder\
.pushDefaultLayers()\
.push(MacLayer)\
.build()
# instead of self.stack.setCredentials(credentials)
self._stack.setProfile(config.credentials['phone'])
def set_prop(self, key, val):
self._stack.setProp(key, val)
def start(self):
print("[Whatsapp] Mac started\n")
self.stack.broadcastEvent(YowLayerEvent(YowNetworkLayer.EVENT_STATE_CONNECT))
try:
self.stack.loop(timeout=0.5, discrete=0.5)
except AuthError as e:
print("Auth Error, reason %s" % e)
except KeyboardInterrupt:
print("\nYowsdown")
sys.exit(0)
Yowsup will find config.json
in directory and takes all needed information
Hi everybody! Im new
I want to know what is the password
}
That is my JSON file, what i need put in the config.py file?? Thank you