Forum Discussion
How to have app send message to channel without configuring connector
- Mar 20, 2020
You could send message in a team from your app by doing a POST API call to below endpoint.
{serviceURL}/v3/conversations/{conversationId}/activities/{activityId}When bot is added into a group/team ConversationUpdate event is called in bot framework. You can cache the user details and serviceURL. And you can use these detail to post a message in teams or group.
subhasish-MSFT thank you, this is exactly what I was looking for. At first I dismissed this approach because I didn't realize a ConversationUpdate event was fired when the app was installed, I thought it needed direct user input.
That being said if I save the Conversation Reference from the initial app installation, can I use that indefinitely to post in other channels of the Team, or will it expire at some point like an Oauth Token?
adamhouck , You have to store the team Id, tenant Id, conversation Id(in case of personal scope). These are unique Ids and can be stored indefinite time.