As your error message says, creating chat does not support application-only context for the time being, it currently only supports user context.
So you need to grant Chat.Create
delegation permission for your application, and then you need to use the auth code flow with user participation to get the access token, and then you will be able to use the user token to call the /chats
api endpoint to create chats for the user .
If an Answer is helpful, please click "Accept Answer" and upvote it.