yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

1.How to get PushName AND 2. How to get credentials in cli.py ?

Open kuldippatel opened this issue 11 years ago • 1 comments

  1. Any idea how to get whatsapp profile name of the sender? messageProtocolEntity.getName() does not help.
  2. How to access the phone number of the current config in cli.py? Was not able to do getProp(YowAuthenticationProtocolLayer.PROP_CREDENTIALS) in this file.

kuldippatel avatar Jan 26 '15 10:01 kuldippatel

1- through messageProtocolEntity.getNotify() 2- cli.py is responsible for parsing command input, so ideally should have nothing to do with actual yowsup stuff. You can get this property from the actual interface layer (layer.py in case of cli demo), through self.getProp, or self.getOwnJid()

tgalal avatar Feb 01 '15 07:02 tgalal