Is there a maximum delay to edit a message?

You have up to 24 hours to edit your message after it is posted. After this time, the edit link will no longer appear.