change the way to extract "chat_key" from the script