Work with the inline keyboard. CallbackQuery. How to bring inline with the keyboard item description(from the database)?

Decided to check bot and Python.

Created a database with name, description and type of item. Did that bot was taken from the database of names and recorded them as inline buttons:


How to refer to while clicking each inline-button(the name of the subject of the withdrawal of the remaining information in the text? For example:


1. Do I understand correctly that you take the necessary row with data(in my case it sh_goods_{}):

callback_query_handler(text_contains = "sh_goods")

2. Further, I understand we need to get data from the callback, everything that comes after sh__goods:

sh =[8:]

3. The request for verification is there such a product in the database and display it in a list

Started to do, as I understand it, but it's not working! If you have ideas please write

April 19th 20 at 12:27
1 answer
April 19th 20 at 12:29
Through the processing callback

Find more questions by tags Python