I have mode progress on my bot, but have not solved my problem. You can view my new post that goes into more detail (and has actual code) here.
I previously used Telegram as my messaging service, it had a RESTful API where I could make a bot forward a message to a certain conversation identified by a chat ID. I have been trying to find a way to replicate similar functionality for Teams using the Microsoft Bot SDK. I've looked into the MS documentation on proactive messaging and RESTful API, but I dont think they perform a similar task.
To be more detailed, my goal is this: From my app send a POST request to my bot that contains
- The necessary credentials
- A message/attachment to forward
- The conversation ID of who to forward this message to
As requested, a step by step explanation of the work flow:
- User in my web app triggers alarm.
- This alarm triggers a POST request with a message that is sent to the bot to dispatch to MS Teams users.
- The bot receives the POST request and sends the message to the specified conversations
- The users and group chats would be specified in the POST request, or stored in a database the bot can reach
No need to keep track of replies to the message, this bot is purely for notifications.
If anyone can offer advice or can point me towards resources they think would be helpful, I'd be very grateful.
Edit: I am currently looking into the strategy of sending a POST request to the bot with an additional JSON field that specifies that the message be forwarded and to whom. Will update if I find it works.
Thanks.