How to implement bot session timeout?

How to create a session timeout such that any prior quick replies or flows will reset and cannot be used again?

For example: If a user is in a payment flow and is inactive for 20 minutes, I want the flow to continue from the beginning with a session timeout notification.