There are parameters in the json new message event
"is_topic_message": true,
"message_id": 11,
"message_thread_id": 4,
But I didn't find anything for interacting with topics in the library. There are no tools for reading these values or for sending messages to topics.