John Moses Browning (with his brother Matthew) developed the gas-operated design between roughly 1889 and 1895. It was the first successful gas-operated machine gun to enter service and the first American-designed automatic machine gun. Colt manufactured it as the Model 1895 (later refined as the Model 1914). The nickname “Potato Digger” comes from the distinctive operating lever under the barrel that swings downward with every shot; if the gun was mounted too low on soft ground, the lever would dig small holes in the dirt.
It was not formally adopted as a standard U.S. Army machine gun (the Army continued using Gatlings and later bought other designs), but the Navy and Marines used it. More relevant to the meme, two privately purchased examples (serial numbers 161 and 164, chambered in 7×57mm Mauser) were acquired for Theodore Roosevelt’s 1st U.S. Volunteer Cavalry—the Rough Riders. These guns saw combat in Cuba during the Spanish-American War, including at the Battle of San Juan Hill (and nearby Kettle Hill) on July 1, 1898. They supported the charge, burned through their ammunition (around 4,000 rounds), and were later resupplied with captured Spanish 7mm ammo. They are generally recognized as the first automatic machine guns used in combat by U.S. Army forces.
Roosevelt himself was not especially impressed with them (he later called the guns “delicate and readily out of order”), and contemporary accounts often give more credit to Lt. John H. Parker’s Gatling gun battery for the covering fire during the assault. Still, the Potato Diggers were there and did fire in support of the Rough Riders.