with connection.cursor() as cursor:
cursor.execute(f"SELECT * FROM user WHERE facultet=\"{my_facultet}\"")
bot.send_message(id,f"Всего участников в {my_facultet}: {summ}")
message = ''
for row in cursor:
message = message + f'имя: {row["name"]}\n'
print(message)