Closed laneboyandrew closed 4 years ago
https://core.telegram.org/bots/api#inlinekeyboardbutton
You need to set the attribuite "callback_data" and read it using
$callback_query = $telegram->Callback_Query();
Thank you for reply. Today I've tried with Callback_Query method: $callbackQuery = $telegram->Callback_Query(); $message = $callbackQuery['message'];
and i tried with method Callback_Message(); $message = $telegram->Callback_Message();
Doesn't work, I really don't understand why.
To read the callback data, you need $callbackQuery = $telegram->Callback_Query(); $data = $callbackQuery['data']
Thank you so much, it's exactly what i wanted:)
Hello guys. I have inline keyboard where $fullink is a callback data. $keyboard[] = [ $telegram->buildInlineKeyboardButton($arr[2][$k], "", $fullLink) ]; Tell me please how using this lib get callback data and handle it. I just need to get values from callback data.