The coffee vending machines of the beginning of the century have little or nothing to do with the modern ones, which incorporate advances in electronics to dose, dispense and charge the product. The latest generation already prepare, in addition, all kinds of infusions and chocolate.
Automatic liquid dispensers are not an invention of now. Already in the III century a. of C., Erone of Alexandria speaks of the existence of a glass in the temple that distributed holy water when introducing five drachmas in its mouth. In the diagram, you can see what a modern coffee machine looks like inside.





