ports = []
for item in host['data']:
ports.append(item['port'])
bot.send_message(message.chat.id, f"Порты: {ports}" )
ports = ""
for item in host['data']:
ports += str(item['port']) + ", "
bot.send_message(message.chat.id, f"Порты: {ports[:-2]}" )