How to return recorded video URL with jibri to current room text chat?

Hi, guys!

We use very simple script to finalize recording and store video in Peertube -
It works with Jibri config (/etc/jitsi/jibri/config.json) parameter "finalize_recording_script_path":
Please let me know how can I return peertube answer to Jibri and pass it to current room text chat. We have to open recording URL only for speakers in current room.

Thank you for help!