What you have is an apple snail! The tube it extends is it's breathing tube. They are really neat snails, and can only breed with a partner, unlike other snails who can reproduce by themselves. They do get large though, sometimes even bigger than a golf ball!
It's likely that your betta is...