Capabilities/mod/chat:exportparticipatedsession
From MoodleDocs
This allows the user to export or download the logs for any chat session they participated in.
This allows the user to export or download the logs for any chat session they participated in.