Mix cocoa powder and sugar in a bowl.
Gradually add milk while mixing well.
Transfer the mixture to a small saucepan and cook over medium-low heat, stirring continuously.
Once it has thickened completely, add the butter and mix well.
Turn off the heat, let it cool, and transfer to a jar.