microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.48k stars 2.44k forks source link

[Telegram] Is Mention Entity supported for Telegram? #2740

Closed ncksol closed 6 years ago

ncksol commented 7 years ago

System Information (Required)

Example Code

var reply = activity.CreateReply();
var replyText = "test";

var entity = new Entity();
entity.SetAs(new Mention
{
    Text = replyText,
    Mentioned = new ChannelAccount
    {
        Name = activity.From?.Name,
        Id = activity.From?.Id
    }
});

reply.Entities.Add(entity);

await Connector.Conversations.ReplyToActivityAsync(reply);

Expected Behavior

This is how replies look like in Telegram when you do it as a user from UI: http://imgur.com/pzYvV2C

JasonSowers commented 7 years ago

Have you been able to resolve this issue yet, or are you still having the same problem?

ncksol commented 7 years ago

I am still having the same problem

ncksol commented 7 years ago

Is there any update on this issue? I've updated to 3.9 and still experiencing this.

nwhitmont commented 7 years ago

@eanders-MS Is Mention Entity supported for Telegram?

JasonSowers commented 6 years ago

It is possible that Name and Id are reversed, or missing. can you check that these values are the expected values? We have another bug in Activity.From that may be the reason you are experiencing this.

ncksol commented 6 years ago

So I decide to check if this is working few versions later. Nope still doesn't. @JasonSowers tried switching Name and Id around - didn't help.