Send buddypress message with slq query

Good morning.
I’m building an application in php and should be able to send messages BuddyPress.
I’m trying to understand which queries are performed by BuddyPress sending a message, but I can not understand from where the thread_id appears.
Any idea?
Thank you

ps: sorry for my bad english

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.