Answer the question
In order to leave comments, you need to log in
How to get command argument?
At the moment, I will decode the commands by comparing message / text with the commands prescribed in the check. But how to get the command argument? For example, if the bot receives the /test 123 command, how to get 123 separately?
Answer the question
In order to leave comments, you need to log in
Parse what comes to you through php.net/manual/ru/function.preg-match.php
Well, or use some framework for bots.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question