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:

5e9919f9d87f2515694926.png

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:

5e991b9f9047f574687805.png

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 = call.data[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

5e991be0c8c0f587105958.png
April 19th 20 at 12:27
1 answer
April 19th 20 at 12:29
Through the processing callback

Find more questions by tags Python