for now I have the following code
$arr1 = array('text' => "weather forecast", 'callback_data' => "weatherscript");
$arr2 = array('text' => "some other script", 'callback_data' => "script2");
$keyboard = array(array($arr1, $arr2));
sendInlineKeyboard($bot_id,$json_out->message->chat->id,"Wähle aus",$keyboard);
Depending on pushing button 1 or 2 I want to ask the bot user for another input. Once this input is done, how can I process the bot with a relevant reply.
The bot should do following:
- Ask which script should be executed. See above. Let's say a weather script.
- Ask for a manually typed reply. Let's say to provide the name of a specific city
- Bot should reply with the weather of the city name provided
So generally what I am struggeling with is how to process the reply of bot user after selecting by button
If you use callback query then you have to add some more lines of code
Something like that