简体   繁体   中英

Background jobs in Microsoft Bot Framework in Teams Channel

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM