I’ve developed a chatbot for Messenger platform that uses sender actions (typing and seen). I would like these actions to look more natural by adding a delay between the seen and typing indication.
For instance, user sends a message and bot shows “seen” action for 1 sec. Then, bot shows “typing” action for 2 sec until a response is sent. I’ve tried this with
time.sleep() method in python, but I believe it isn’t a good practice.
Has anyone tried this? Any help or suggestion will be appreciated.