Peanuts or goobers are toxic to chickens just like soybeans and all other Legumes. Toxic doesn't mean that your chickens will drop dead with a beak full of peanuts but that they don't sit well on your chickens' tummy. This is one reason that soybeans are first roasted, ground up, and the soybean oil is either pressed or chemically extracted from the bean meal before it can become chicken food. Also chickens are famous for shunning food that they don't like so you may have the devil to pay to get your birds to eat goober peas.
This is one of those rare cases where chicken biology parallels human biology. Let us know if you ever ate a bait of raw peanuts growing up LOL

and what the result was.