you can use
tracker.latest_message[“text”] instead of tracker.latest_message.text[“text”] I tried this and it works fine