Answer the question
In order to leave comments, you need to log in
How to make command order for bot?
There is a bot. Have it accept the /new command and then send the user a message like "Send a title". The user sends an ordinary string like "MyName". This is the question: how to implement this? So that the bot accepts a string from the user only after / new
Answer the question
In order to leave comments, you need to log in
Store state for users. Set it with the /new command and accept a string if a certain state is set.
maybe just set some flag?
private $isInit= false;
public function init()
{
$this->isInit = true;
}
public function isInit()
{
return $this->isInit;
}
$this->isInit()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question