BATAVIA, N.Y. -

Former Miami Hurricanes quarterback and Buffalo Bills Hall of Famer Jim Kelly says he has been diagnosed with cancer in his upper jaw bone and will have surgery on June 7.

Kelly is suffering from squamous cell carcinoma, but he has recently undergone tests to show that the cancer is isolated in his jaw and has not spread to other parts of his body.

"The past couple of weeks have been difficult for me," Kelly says. "Because of the nature of social media, I thought it would be best to share with everyone what has been going on with my health."

The announcement was made Monday morning, just before the start of the quarterback's Kelly For Kids charitable foundation's annual celebrity golf tournament.

"Doctors have told me that my prognosis for recovery is very good," he says.

Kelly helped build the University of Miami football program in the early 80's and spent 11 seasons with the Bills before retiring following the 1996 campaign. He still holds nearly every significant career franchise passing record -- 35,467 yards, 237 touchdowns and 26 300-yard games -- and was inducted into the Pro Football Hall of Fame in 2002.