Storing Chat Information in Photon

Hello everyone, currently I am using Photon to build a chat application. However, I am facing a problem with storing chat information.

I want to store chat information for about 2 months even if the room is closed. When I log back in, I should still be able to see my own and others' content. Is there any way to do that?

If you know, please help me or provide me with the necessary documents to solve this issue.