1
votes

I have deployed my bot on teams channel.

I would like to send a welcome message to a new user even before user sends a message to the bot.

can we achieve this for teams channel?

If yes, which event can be used to get that user is accessing bot for the first time.

3
What programming language are you building your bot with ?Marc Asmar
I am using C# library for building botRutuj Langalia
Yes then check my answer, that event will trigger once a user joins the conversationMarc Asmar

3 Answers

1
votes

The conversationUpdate event with the membersAdded object in the payload is sent when either a bot is added to a team or a new user is added to a team where a bot has been added. It is always a good practice to send a welcome message introducing the bot to all the users. Ensure that your bot responds to the conversationUpdate message, with the teamsAddMembers eventType in the channelData object. Also, keep in mind that the memberAdded ID is the bot's App ID itself, because the same event is sent when a user is added to a team.

Hope this helps.

0
votes

You can use the ConversationUpdate event ActivityTypes.ConversationUpdate // in c#

0
votes

When a bot is installed, your bot receives a conversationUpdate event. You can then send a proactive message to the user. Could you please try sending a proactive message and let us know if you face any issues?