Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create WhatsApp_sender.py #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update whatsapp_sender.py
making changes so that it supports whatsapp
  • Loading branch information
gautam1858 committed Jan 8, 2020
commit 65404fe00317828a7f50bdca17c3797bb309419c
3 changes: 2 additions & 1 deletion knockknock/whatsapp_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def wrapper_sender(*args, **kwargs):
'Main call: %s' % func_name,
'Starting date: %s' % start_time.strftime(DATE_FORMAT)]
text = '\n'.join(contents)
client.messages.create(body=text, from_=sender_number, to=recipient_number)
y = 'whatsapp:'
client.messages.create(body=text, from_=y+sender_number, to=y+recipient_number)

try:
value = func(*args, **kwargs)
Expand Down