Closed Kilian closed 7 years ago
Thanks for PR. But something failing here?
I see. I would prefer to keep the variable name as "sender_action", so we keep in tandem with Facebook's naming. Are you alright with adding an eslint disable-line, or do you want me to change it to senderAction?
I have renamed the variable to senderAction.
I do appreciate that @Kilian
This adds 4 api's to the Bot class:
The latter three all use the senderAction, which handles the communication. There is a start and stop function for convenience, and a setTyping function with a boolean for conditionally showing it. They are documented in the README.md
I use it like this, which makes it seem like the bot is actually typing: