You cannot get TM Dig in Pokémon Mystery Dungeon.
Dig is a naturally learned move for many Ground-types (e.g., Diglett, Dugtrio, Trapinch, Gible). It's not a TM in any Mystery Dungeon game.
TMs in Mystery Dungeon teach moves not learned naturally. Dig doesn't qualify.