Forum Discussion
NKM122205
Aug 22, 2019Copper Contributor
Newbie: Using V3 SDK TeamsChat connector with node async/await?
Hi,
It looks like V3 SDK TeamsChat connector's listen method needs to be used to process messages something like this:
app.post('/api/messages', (req, res) => {
console.log('Chat message received!');
connector.listen();
});
But I need to use it with async/await as it is possible with V4 SDK BotFramework Adapter:
server.post('/api/messages', (req, res) => { |
adapter.processActivity(req, res, async (context) => { |
// Route to main dialog. |
await bot.run(context); |
}); |
});
How can V3 TeamsChat connector be used (if at all) in this way? Is there a sample to refer to?
Thanks in advance and regards
- Trinetra-MSFTMicrosoft
NKM122205 Could you please take a look at Running Async functions in Microsoft Bot Builder (Node JS)?