Occasional Contributor

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

 

 

 

 

We support Ukraine and condemn war. Push Russian government to act against war. Be brave, vocal and show your support to Ukraine. Follow the latest news HERE