Hi @Suraj Dengale
This is an obvious error, as your error message indicates that your token is missing one of the Chat.Read
or Chat.ReadWrite
permissions. The Chat.Read and Chat.ReadWrite permissions you assigned to your app in the portal have not yet been granted user or admin consent, so they are not synced to the token.
Before starting, please try clicking the "Grant admin consent for xxxxxx" button in the portal or grant dynamic consent for the above permissions when the user is logged in.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.