Almost certainly, the battery is knackered. If you give jimmy a call at BGA Reworking, he'll sort it for you for about £250. He arranges collection and return.
For anybody else that buys a used bike, you should always work on the basis that it'll need a new battery, except maybe if you can see that the bike is less than 6 months old. In that respect, hardly used doesn't count. the battery can deteriorate by bad storage conditions. Also, some people try to fast charge their batteries, which ruins them, so it can be knackered even when relatively new. Worse still, you never know if the owner or his/her family or friends don't have two bikes: One is well-used and the other hardly used. they swap batteries before selling the hardly used one. There's so many possibilities for unscrupulous sellers.