welcome to YT! Sorry your little one has worms.. depending on what kind of worms your little furbabe had.. if it's the common roundworms.. it shouldn't be expensive to treat.. there are even some over the counter products that you could use (but i suggest going to your vet)..
When I first got oreo he had Roundworms & Tapeworms.. the roundworms were so easy to get rid of... the Tapeworms on the other hand.. were a handful!! but good luck and i'm sorry you little one has worms! I hope he feels better!