I have dynamically created buttons in an array
keyboard = InlineKeyboardMarkup()
keyboard.row_width = 2
for i in range(0, len(adress)):
keyboard.add(InlineKeyboardButton(adress[i].text, callback_data="address_"))
bot.send_message(cid, 'Выберите адрес парковки', reply_markup=keyboard)
How do I track the click of one of the buttons and get the text from it? I set all the buttons the same callback_data. Perhaps you can do this if call. data = = "address_":
, but how do I get the button text?