Iinline keyboard. I made a button, but what to do with the callback_data?

南楼画角 提交于 2019-12-03 21:28:29

If someone clicks the button you will receive a callback_query object instead of a message object. The callback_query itself contains the originally sent message.

$output = json_decode(file_get_contents('php://input'), TRUE);
$callback_query = $output["callback_query"]
$data = $callback_query["data"] // in your case $data is "/plz"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!