I'm now creating a telegram bot, I made the inline_keyboard (With callback data) and I want that when I press the button "Developer" it will change the message, but when I want to check callback_data value and have a response it doesn't do anything
$query = $update['callback_query'];
$queryid = $query['id'];
$queryUserID = $query['from']['id'];
$querydata = $query['data'];
// Query
$tastierainline = 'reply_markup={"inline_keyboard": [[{"text":"Developer","callback_data":"Developer"},{"text":"Top10 ","callback_data":"Top10"}]]}';
if ($querydata == "Developer") {
editMessage(
$userID,
"Bot developed by @Herossandro and @KiroWasHere",
$messageIDBot,
'reply_markup={inline_keyboard: [[{"text":"Home","callback_data":"Home"}]]}'
);
}
I expect that the bot modify the message to "Bot developed by @Herossandro and @KiroWasHere" but it doesn't do anything when I press the Developer button (it loads for a while but doesn't do anything)