After an endoscopy, it is not recommended to consume any food or drink for the first two hours. This period is important to minimize the risk of potential nausea and vomiting. After two hours, one can start with liquid foods and then gradually transition to a normal diet.