messageCount

open val messageCount: Int?(source)

Number of messages (not including the initial message or deleted messages) in this thread.

For threads created before July 1, 2022, the message count is inaccurate when it's greater than 50.