проблема в том что в телеграм мне выводит только ид а мне нужно вывести еще столбы code @bot.message_handler(commands=['start']) def start_command(message): markup = types.ReplyKeyboardMarkup(resize_keyboard=True) item1 = types.KeyboardButton('Улица') markup.add(item1) bot.send_message(message.chat.id, "{0.first_name}, выберите вариант.".format(message.from_user, bot.get_me()), parse_mode='html', reply_markup=markup) @bot.message_handler(content_types=['text']) def find_unit(message): if message.text == 'Улица': send = bot.send_message(message.chat.id, 'Напиши название Улицы которую нужно найти') bot.register_next_step_handler(send, street) def street(message): try: dbconfig = read_db_config() conn = MySQLConnection(**dbconfig) cursor = conn.cursor() #cursor.execute("SELECT * FROM TBstreet") cursor.execute("SELECT * FROM TBstreet WHERE street='ул. Воробьева' AND home='20';") rows = cursor.fetchall() print('Total Row(s):', cursor.rowcount) for row in rows: print(row) bot.send_message(message.chat.id, row [0]) except ValueError: print("Ошибка") if __name__ == '__main__': bot.polling(none_stop=True)