yausername / whatsapp-cli

MIT License
32 stars 7 forks source link

can't message user or list #7

Closed CanerEren closed 5 years ago

CanerEren commented 5 years ago

I have set up pushbullet, got it working. Recieved message and got notified. but i cant see the contact in cli or list any contacts ?

yausername commented 5 years ago

whatsapp-cli must be running in interactive mode while you are receiving the message. Alternatively you can add contact manually using

Usage: whatsapp-cli add [OPTIONS]

Add a contact

Options: -u TEXT Name of the person/group as it appears in your contacts [required] -m TEXT 12 digit mobile number [required]

On Tue, Feb 26, 2019, 4:39 PM CanerEren notifications@github.com wrote:

I have set up pushbullet, got it working. Recieved message and got notified. but i cant see the contact in cli or list any contacts ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yausername/whatsapp-cli/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AE9kP8AKoR8_teVayySJ_G7pUZZDAlpzks5vRRXRgaJpZM4bR7MN .

CanerEren commented 5 years ago

Thanks, I have added contact now. but i can't send anything.

Exception in thread Thread-10: │ └──────────────────────────────Traceback (most recent call last):─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/Library/Python/2.7/site-packages/whatsappCli/ui/curses_ui.py", line 70, in execute self.__send_message(command.strip(), win_index) File "/Library/Python/2.7/site-packages/whatsappCli/ui/curses_ui.py", line 134, in __send_message self.feeder.post(contacts[self.windows[win_index].usr_tag], command) File "/Library/Python/2.7/site-packages/whatsappCli/feed/pb_feeder.py", line 53, in post req["push"]["source_user_iden"] = config["source_user_iden"] KeyError: 'source_user_iden'

yausername commented 5 years ago

Are you able to see received messages in ui mode?

On Wed, Feb 27, 2019, 12:21 PM CanerEren notifications@github.com wrote:

Thanks, I have added contact now. but i can't send anything.

Exception in thread Thread-10: │ └──────────────────────────────Traceback (most recent call last):─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in bootstrap_inner self.run() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.__kwargs) File "/Library/Python/2.7/site-packages/whatsappCli/ui/curses_ui.py", line 70, in execute self.send_message(command.strip(), win_index) File "/Library/Python/2.7/site-packages/whatsappCli/ui/curses_ui.py", line 134, in __send_message self.feeder.post(contacts[self.windows[win_index].usr_tag], command) File "/Library/Python/2.7/site-packages/whatsappCli/feed/pb_feeder.py", line 53, in post req["push"]["source_user_iden"] = config["source_user_iden"] KeyError: 'source_user_iden'

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yausername/whatsapp-cli/issues/7#issuecomment-467745678, or mute the thread https://github.com/notifications/unsubscribe-auth/AE9kPxBkvYxUBjOieqIMMOyhbc10MxHbks5vRir1gaJpZM4bR7MN .

CanerEren commented 5 years ago

what is ui mode?

yausername commented 5 years ago

The normal Interactive (Curses) Mode shown in the readme

On Wed, Feb 27, 2019, 12:48 PM CanerEren notifications@github.com wrote:

what is ui mode?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yausername/whatsapp-cli/issues/7#issuecomment-467751754, or mute the thread https://github.com/notifications/unsubscribe-auth/AE9kP1zwMhLkpPRRvBiify1WcqM1dEezks5vRjFXgaJpZM4bR7MN .

CanerEren commented 5 years ago

how can i seed conf, i can't receive messages. i'm in the dir right now

CanerEren commented 5 years ago

source_user_iden,ujxDbWTFXBA source_device_iden,ujxDbWTFXBAsjCy2EANtVQ

this is inside the conf file

yausername commented 5 years ago

Looks ok. Can you try to send again?

On Wed, Feb 27, 2019, 1:01 PM CanerEren notifications@github.com wrote:

source_user_iden,ujxDbWTFXBA source_device_iden,ujxDbWTFXBAsjCy2EANtVQ

this is inside the conf file

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yausername/whatsapp-cli/issues/7#issuecomment-467754709, or mute the thread https://github.com/notifications/unsubscribe-auth/AE9kP-D737JtCPvAVWNhPNCjLpocBib_ks5vRjQ9gaJpZM4bR7MN .

CanerEren commented 5 years ago

oh it works now 👍

CanerEren commented 5 years ago

one more thing, i can't erase anything in cli, like backspace does not work at all. is this normal?

yausername commented 5 years ago

one more thing, i can't erase anything in cli, like backspace does not work at all. is this normal?

It works for me on ubuntu. What OS are you on? Might be a bug.

CanerEren commented 5 years ago

macOS 10.13.6

yausername commented 5 years ago

macOS 10.13.6

hmm, I never tested on macOS. This is definitely a bug then.

CanerEren commented 5 years ago

are you gonna look into it?

yausername commented 5 years ago

I am busy with other things right now. So maybe some time in future.

On Wed, Feb 27, 2019, 2:01 PM CanerEren notifications@github.com wrote:

Closed #7 https://github.com/yausername/whatsapp-cli/issues/7.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yausername/whatsapp-cli/issues/7#event-2167239925, or mute the thread https://github.com/notifications/unsubscribe-auth/AE9kP31GHH5c5Z3B1ZWsEVcAC4MxHqsMks5vRkJ-gaJpZM4bR7MN .

CanerEren commented 5 years ago

okay dude, have a nice week. thanks for the help :)