Disable user input in widget

How can I have a button or a feature using which I can disable the user input/ text field in this widget. I’ve done a lot of RnD but couldn’t found any helpful solution. Please help, I’m using this widget: https://github.com/JiteshGaikwad/Chatbot-Widget

Disabling the Entry Widget will not allow the users to edit and add a values to it.