microsoft / botbuilder-java

The Microsoft Bot Framework provides what you need to build and connect intelligent bots that interact naturally wherever your users are talking, from text/sms to Skype, Slack, Office 365 mail and other popular services.
http://botframework.com
MIT License
179 stars 116 forks source link

How to send a message to a channel #1505

Closed prateeknarsinghani closed 1 year ago

prateeknarsinghani commented 1 year ago

Hi team, I am trying to create a teams app notification bot using Java Spring Boot. Different organizations can add it to their Teams app and then it can send some custom notifications to a channel within their org. I have a developer account. Can you please tell me how can I start a conversation on some trigger like HTTP request. I had found an example on proactive message but it send notification to everyone who has interacted with the bot. I want to send a custom message to a particular tenant and channel. Thanks in advance!

anishprasad01 commented 1 year ago

Hi @prateeknarsinghani,

In order to send proactive messages to a specific user, you will need to implement a data store of some kind and maintain a list of users so that you can message them directly. I would recommend taking a look at the Teams sample repo for examples on how to implement proactive messaging in Teams. The sample you have linked is not intended for use in Teams, though you can adapt it as you see fit.