ATMs have taken deposits since forever? Deposits without envelopes where the machine images checks and counts bills is very common in my experience, and it started long enough ago that I can't remember when it was. Sometime in 2010s, I think.
If you get a lot of checks, deposit one at a time methods can be a bit slow and tedious--but that's less and less common.
I remember depositing banknotes in ATMs in Britain in the early 2000s. It was only a single ATM at the bank branch. You had to put the notes in an envelope and feed that into the machine. They would check the amount later in the day.
At some point the machine would take the notes one at a time, and I've seen these in Britain and Denmark, but I deposit cash less than once a year in any case.
Here's a weird ebay auction of receipts from 1997 showing deposits: https://www.ebay.com/itm/334119399422 and a pretty good deal on long distance!