The NHS website suggests that hysteroscopy (alone) has a short recovery time, with patients able to resume their normal activities the following day (or possibly after a few days rest if a general anaesthetic was used):
https://www.nhs.uk/conditions/hysteroscopy/recovery/
The site also suggests that the recovery time for laparoscopy (when used for diagnosis, such as taking a biopsy sample, rather than for treatment) is "within 5 days":
https://www.nhs.uk/conditions/laparoscopy/what-happens/
However some people seem to recover remarkably quickly from keyhole surgery. I was in hospital earlier this year, where two people on the same ward had their appendices removed via keyhole surgery. They both left the following day, with one immediately going to an optician's appointment (with plans to go shopping immediately afterwards) and the other guy planning to go straight to the shops and then onto a pub.