Fix to respect the t_chat_api_secret variable where possible.