botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[.Net SDK, Skype] Mention one bot from another doesn't work

Open khawarashraf opened this issue 8 years ago • 2 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: 3.15.2.2
  • Active Channels: Skype
  • Deployment Environment: Azure Bot Service

Issue Description

I have a Bot1, a user send a message to Bot1 in group chat, Bot1 responds and mentions user in reply. It correctly tiggers for user that his/her name is mentioned.

I have another Bot2 in the same group chat, when Bot1 mention it in the reply, Bot2 does not get any notification.

Code Example

replyActivity.Text = $"Hello <at id="{Bot2ID}">Bot2"; replyActivity.Entities.Add(new Mention() { Mentioned = new ChannelAccount() { Id = $"{Bot2ID}" }, Text = $"<at id="{Bot2ID}">Bot2", Type = "mention" }); replyActivity.ChannelData = new JObject() { ["text"] = $"Hello <at id="{Bot2ID}">Bot2" }; await context.PostAsync(replyActivity);

Reproduction Steps

  1. Add two bots in group chat
  2. Post a message in the group chat from Bot1 mentioning Bot2
  3. Bot2 does not receive any message.

Expected Behavior

Bot2 should get message.

Actual Results

Bot2 does not receive any message

khawarashraf avatar Jun 23 '18 10:06 khawarashraf

As mentioned in this stackoverflow question bots cannot actually directly message other bots within channels like skype, slack etc to prevent them from getting into an infinite conversation.

If you want to pass information from one bot to another a bot to could post a message to skype and then also send a directline message to your other bot, which it could respond to.

sbuffkin avatar Jun 25 '18 23:06 sbuffkin

Thank you.

khawarashraf avatar Jun 25 '18 23:06 khawarashraf