We know that there is ForceReply option to get input from user in telegram api.
Telegram said :
Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.
Now I used irazasyed/telegram-bot-sdk to make my telegram bot. in that package to create a force_reply interface we should do like this :
$forceReply = Keyboard::forceReply(['force_reply' => true]);
$this->replyWithMessage([
'text' => 'Please enter your name ?',
'reply_markup' => $forceReply
]);
Result is like :
But in usages in other bot for example PollBot that uses this option , when shows a question and want to get answer , reply interface does not show.
I want to do same.I know that if I set value of force_reply to false it done but I do not know after that how can I detect that text that user entered is related to which my question.
what do I do really ?
