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

Any direct message (not group chat) example? #53

Open
dnfatas opened this issue Apr 8, 2018 · 1 comment
Open

Any direct message (not group chat) example? #53

dnfatas opened this issue Apr 8, 2018 · 1 comment

Comments

@dnfatas
Copy link

dnfatas commented Apr 8, 2018

Any example to build an echobot if anyone message the bot directly?
Or send a message to someone who have already add the bot as a friend.

Examples here
https://github.com/fadhiilrachman/line-py/tree/master/examples
seems to be bots for group chats.

@doodspav
Copy link
Contributor

doodspav commented Apr 8, 2018

change
msg = op.message
to:

msg = op.message
if msg.toType == 0:
    msg.to = msg._from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants