@bot.message_handler(func=lambda mess: mess.text in goods, content_types=['text'])
def handle_text(message):
keyboard = types.ReplyKeyboardMarkup(row_width=2, resize_keyboard=True, one_time_keyboard=False)
if message.text in goods:
bot.send_message(message.chat.id, "", reply_markup=keyboard )
[
{"Продукция1":{"name_good": "Товар1": {"price": "100", "color": "black", "name": "namegoods"},
"Товар2": {"price": "100", "color": "black", "name": "namegoods"},
"Товар3": {"price": "100", "color": "black", "name": "namegoods"},
"Товар4": {"price": "100", "color": "black", "name": "namegoods"},
"Товар5": {"price": "100", "color": "black", "name": "namegoods"},
"Товар6": {"price": "100", "color": "black", "name": "namegoods"},
"Товар7": {"price": "100", "color": "black", "name": "namegoods"}}},
]