Background jobs in Microsoft Bot Framework in Teams Channel

Viewed 126

I have a teams bot and I need to run a timer outside of the turnContext. What is the correct way to do it? Right now, I am doing it inside a dialog but when the dialog ends, the timer is cancelled. I need to trigger the timer inside a dialog but it need to run long after the dialog ends.

I have the bot in C# and SDK v4

1 Answers

You can send message using Timer to teams, When you receive the event from the bot you can start the Timer and send message when Timer Ends using the proactive message. You can use Loops to set the time and send messages.

Related