node
2 TopicsGetting a 401 when trying to create a conversation
Hello ! Using the node botbuilder SDK, I am trying to setup my bot to proactively create a conversation in a public channel on Teams. However, I keep getting 401 responses from the API, with no further details. You can find my code attached bellow: const adapter = new CloudAdapter( new ConfigurationBotFrameworkAuthentication( { MicrosoftAppId: process.env.MS_BOT_APP_ID, MicrosoftAppTenantId: process.env.MS_CLIENT_ID, }, new ConfigurationServiceClientCredentialFactory({ MicrosoftAppId: process.env.MS_BOT_APP_ID, MicrosoftAppPassword: process.env.MS_BOT_CLIENT_SECRET, MicrosoftAppTenantId: process.env.MS_CLIENT_ID, }), ), ); await adapter.createConversationAsync( process.env.MS_BOT_APP_ID!, Channels.Msteams, "https://smba.trafficmanager.net/teams/", null, { activity: { type: "message", text: "This is a test message", textFormat: "markdown", }, bot: { id: `28:${process.env.MS_BOT_APP_ID}`, name: "Zygon" }, isGroup: true, tenantId: process.env.MS_TENANT_ID, channelData: { channel: { id: channelId } }, }, console.log, );338Views0likes8CommentsCreating TypeScript Apps with React and Node
Hey Everyone thanks for joining the session, here are all the resources and links we shared! Workshop Recording Get Started with React Introduction to Node.JS Episode 1 of Typescript For Beginners Series Episode 2 of Typescript For Beginners Series Node/ Backend Github Repo React/ Frontend Github Repo Interfaces in Typescript React TypeScript Cheatsheets Transform JSON to Interface Tool Challenge! Connect the Frontend to the new route on the Backend that allows a user to type in a Station Name and ping the new endpoint to get the station ID. This allows the user to get transit times without knowing the station id. Feel free to write in here if you get stuck!975Views2likes0Comments