Open bilibvivo opened 1 year ago
Use this event:
$bot->callbackQuery(function (\TelegramBot\Api\Types\CallbackQuery $callback) use ($bot) {
$message = $callback->getMessage();
$chat_id = $message->getChat()->getId();
$text = $message->getText();
$callback_data = $callback->getData();
...
});
When I click the inline button, it doesn't work. I think CallbackQuery is not in this event listener, how should I listen to it and respond to it?