How to do this?
First, we need to add to our code:
After this modification, the code will look like this:
- to generate chat, you need to call a global function:
- to destroy the chat, you need to call a global function:
- to show the chat automatically, you need to call a global function:
- to hide the chat you need to call a global function: