Weight loss with peloton

Has anyone successfully lost weight using their peloton bike? I read somewhere that it won’t help you lose weight. I’ve been looking into it but if it doesn’t help me lose weight it’s not worth the money. Help!!