V
V
Vitaly2017-03-07 15:27:51
PHP
Vitaly, 2017-03-07 15:27:51

How to make a standard VKontakte bot response to an unknown command?

I am writing a bot in php for the VKontakte community. It works through the official Contact API.
There is a list of strictly defined bot commands, but users write different messages to the bot, and he, of course, does not respond to them. Is it possible to create a standard response to such messages using php. The answer should be something like this: the command is unknown
If you can do this, please send an example of use.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2017-03-07
@vitcorp

Use if/ switch . What is the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question