Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems to implement SendCardToTeamAsync method #100

Open
michaelstiben opened this issue May 9, 2020 · 2 comments
Open

Problems to implement SendCardToTeamAsync method #100

michaelstiben opened this issue May 9, 2020 · 2 comments

Comments

@michaelstiben
Copy link

michaelstiben commented May 9, 2020

I installed the default configuration, it works like a charm. However, I modified the code to allow faq plus answer over webchat.

image

Everything works well, except the method which send the card to the expert team. When the user press the action card "Ask an expert", SendcardToTeamAsync() is triggered to send the action card and then SendcardToTeamAsync() in the file https://github.com/OfficeDev/microsoft-teams-faqplusplus-app/blob/master/Source/Microsoft.Teams.Apps.FAQPlusPlus/Bots/FaqPlusPlusBot.cs Finally, the line where the code brokes is the

await ((BotFrameworkAdapter)turnContext.Adapter).CreateConversationAsync(

I've checked the logs and it said the its a bad request, but I don't understand why its a bad quest. All the parameters of the method are the same of the original code.

image

If you have any idea about this issue, I'll be super glad.

Thanks in advance

@coderkrishna92
Copy link

@michaelstiben The thing here is that when you are using the webchat there is no concept of a Team to forward this over to. That's why you are getting the error that you are seeing. If on the other hand you were using the Teams app for testing, then you would be able to see the requests going to the right Team

@coderkrishna92
Copy link

@michaelstiben You can still ask questions in a 1:1 chat with the bot. However, as I said before when you are using the webchat as a channel for the bot registration, ask an expert functionality will not be active

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants