Hi Hui Yi,
There is actually no recovery period from the scope itself. However, if you had sedation administered during the procedure, you might suffer a loss of memory or experience drowsiness for up to 12 hours after the procedure depending on the dose and type of sedative used.
I would not advise you to return to work, drive, operate machinery or make important life decisions until at least 12 hours after the procedure.