Is there a time limit to when I can edit a past message?

No, you can edit or delete your past messages at anytime.