Preheat the oven to 350°F (180°C) and line a 12-cavity muffin pan with muffin papers.
In a large bowl, whisk together the flour, cocoa powder, baking powder, baking soda, salt, and sugar.
In a separate large bowl, whisk together the oil, egg, vanilla extract, and milk until smooth, with no visible egg pieces.
Make a well in the center of the dry ingredients and pour the wet ingredients into the well. Whisk together until combined.
Once the batter is about 60-70% mixed, carefully add the hot coffee or boiling water and whisk until smooth.
Spoon the batter into the prepared cupcake pan, filling each about halfway. You should get 11 or 12 cupcakes. If you only get 9 or 10, the cups may be too full.
Bake one tray at a time on the middle rack of the preheated oven for 16-20 minutes, or until the tops are slightly firm and a toothpick inserted comes out clean.
Allow to cool in the pan for 10-20 minutes, then transfer the cupcakes to a wire rack to continue cooling.