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

JavaScript code provided in the documentation is actually TypeScript code snippets and throwing errors in .js files. #11161

Closed
ChetanSharma-msft opened this issue Jun 26, 2024 · 3 comments · Fixed by #11223
Assignees
Labels
doc-bug Out of date, unclear, confusing, typo, or broken - including missing information. teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@ChetanSharma-msft
Copy link
Collaborator

Type of issue

Typo

Feedback

JavaScript code provided in the documentation is actually TypeScript code and throwing in .js files.

app.ai.action(
    AI.FlaggedInputActionName,
    async (context: TurnContext, state: ApplicationTurnState, data: Record<string, any>) => {
        await context.sendActivity(`I'm sorry your message was flagged: ${JSON.stringify(data)}`);
        return AI.StopCommandName;
    }
);

image

Page URL

https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/teams%20conversational%20ai/how-conversation-ai-get-started?tabs=javascript4%2Cdotnet2%2Cjavascript3%2Cjavascript2

Content source URL

https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/bots/how-to/Teams conversational AI/how-conversation-ai-get-started.md

Author

@surbhigupta

Document Id

1365434a-6b99-44e9-e809-229d6b5950d3

Copy link
Contributor

Hi ChetanSharma-msft! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@ChetanSharma-msft ChetanSharma-msft changed the title JavaScript code provided in the documentation is actually TypeScript code and throwing in .js files. JavaScript code provided in the documentation is actually TypeScript code snippets and throwing errors in .js files. Jun 26, 2024
@Prasad-MSFT Prasad-MSFT added doc-bug Out of date, unclear, confusing, typo, or broken - including missing information. and removed needs-triage 🔍 labels Jun 27, 2024
@Prasad-MSFT
Copy link
Collaborator

Hi @surbhigupta12 - could you please help here?

@ChetanSharma-msft ChetanSharma-msft added the teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label label Jul 4, 2024
@v-preethah v-preethah assigned v-preethah and unassigned v-preethah Jul 9, 2024
@v-deabira v-deabira assigned v-preethah and unassigned v-ramyas5 Jul 9, 2024
Copy link
Contributor

Tell us about your experience!

Hi ChetanSharma-msft! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.

Best regards,
Teams Platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Out of date, unclear, confusing, typo, or broken - including missing information. teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants