Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Woojung Kim committed Aug 26, 2016
1 parent 00b38a9 commit 4a4d077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def message_handler(event):
sender_id = event['sender']['id']
message = event['message']

page.send(sender_id, "thank you! your message is '%s'" % message)
page.send(sender_id, "thank you! your message is '%s'" % message.get('text'))
```

### handlers
Expand Down Expand Up @@ -82,7 +82,7 @@ def message_handler(event):
sender_id = event['sender']['id']
message = event['message']

page.send(sender_id, "thank you! your message is '%s'" % message)
page.send(sender_id, "thank you! your message is '%s'" % message.get('text'))
```

# Send a message
Expand Down

0 comments on commit 4a4d077

Please sign in to comment.