MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
277 stars 500 forks source link

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

Open ChetanSharma-msft opened 1 week ago

ChetanSharma-msft commented 1 week ago

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

microsoft-github-policy-service[bot] commented 1 week ago

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

Prasad-MSFT commented 6 days ago

Hi @surbhigupta12 - could you please help here?