Closed NWH-SAmin5 closed 3 days ago
Hi, @NWH-SAmin5 , the command bot is used to receive user's command, and then send back message to user, you cannot start a dialog from command handler. If you just want to get the token, and then start a new dialog, I suggest you refer this sample project, which uses ssoDialog to achieve this:
https://github.com/OfficeDev/teams-toolkit-samples/tree/dev/bot-sso
I am getting this error on the sample project as well.
Hi @WaseekSenju , which sample project are you using? Please share more details so that we can take a look, thank you~
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
Due to lack of details for further investigation, we will archive the issue for now. In case you still have following-up questions on this issue, please always feel free to reopen the issue by clicking ‘reopen issue’ button below the comment box. We will get back to you as soon as possible.
Describe the bug I have command bot using this version, I am receiving unhandled error DialogContextError: Cannot find command: {0} right after
TeamsBotSsoPrompt
orOAuthPrompt
I tried both. It looks like OAuthPrompt from my custom dialog is not coming back to my custom dialog and its going toBotSsoExecutionDialog
.Full error
Method 1
/LoginCmd.ts (TeamsBotSsoPrompt)
Method 2
/MainDialog.ts