Combine the ingredients. Put the condensed milk, cocoa powder and butter in a medium saucepan. Stir them together off the heat until the cocoa is fully mixed in and there are no dry patches. Add the vanilla and salt, if using.
Cook over low heat. Set the pan over low to medium heat. Stir the mixture constantly with a wooden spoon or spatula, scraping the bottom and sides of the pan as you go.
Watch for the right thickness. After 10 to 15 minutes, the mixture will thicken and start to pull away from the sides of the pan. When you tilt the pan, it should move as one thick mass, and you should be able to see the bottom of the pan for a second when you stir.
Cool the mixture. Pour the mixture onto a lightly buttered plate or into a shallow dish. Spread it out, cover it loosely, and leave it to cool at room temperature for about 1 hour, then chill it in the refrigerator for 30 minutes. It should be firm enough to hold its shape.
Butter your hands. Lightly grease your hands with butter.
Roll into balls. Scoop out about a tablespoon of the cooled mixture and roll it between your palms into a neat ball, about 2.5 cm across. Repeat with the rest of the mixture, buttering your hands again if they start to stick.
Coat in sprinkles. Put the chocolate sprinkles in a small bowl. Roll each ball in the sprinkles until it is evenly coated, pressing gently so the sprinkles stick. Place each finished brigadeiro in a small paper cup.
Chill before serving. Refrigerate the brigadeiros for 20 to 30 minutes, until they are firm. Take them out of the refrigerator about 10 minutes before serving.