How I can do Cross-category post

I wrote a solution for the cross-category topic post. and implemented the same solution as I have mentioned. I have cloned the Topic and its replies using web hook to clone the posts I have created and used bot users.