vending machine (自動販売機): I bought a drink from the vending machine. (自動販売機から飲み物を買いました)

I bought a drink from the vending machine.