Combine all-purpose flour, sugar, cocoa powder, baking powder, and baking soda in a bowl, then mix in milk, oil, and vanilla essence to create a smooth batter. Once the paniyaram pan is preheated, grease each mould and fill each one about two-thirds full with batter. Cook them with the lid.