We need to create php functions for the bot script for medicament search service. We have an example of a function that receives parameters from the user and displays a response to the user.
According to this example, it is necessary to make several more functions as described, which will send api requests, receive answers and check them under several conditions. Depending on the results of the check, the user will need to show one or another answer.
[login to view URL]