Forum Discussion
diegoSpace
Feb 26, 2020Brass Contributor
Link to a personal chat from Task browser
Hi,
I have a bot with commands and messaging extensions.
When I send a card from the Bot as a response for a command received from Teams, I can add a link to the personal chat of the user who sent the command:
linkToPersonalChat: "https://teams.microsoft.com/l/chat/0/0?users=userIdOffice365";
Card text:
"bla bla: [Open personal chat](linkToPersonalChat)"
And the personal chat is open in Teams client.
However, If I try to open this personal chat from a Task (Messaging Extensions), Teams web is open inside the Teams browser, instead of going diretly to the chat.
Web code:
myElement.innerHtml = "blabla: " + <a href=linkToPersonalChat>Open personal chat</a>
Is it possible to go to the personal chat from a Task web browser?
Thanks,
Diego
- Gousia_Begum
Microsoft
diegoSpace What do you mean by a Task web browser? Could you please share some screenshots of the issue?
- diegoSpaceBrass Contributor
Gousia_Begum Thanks for your reply
When I use Messaging Extensions I am receiving a 'FetchTask' event, and I am returning a task with a URL, so a "Teams browser" is open.
In the web page displayed with that URL, I add a text link (<a href=linkToPersonalChat>Open personal chat</a>). I want this link opens directly the personal chat in Teams client (as happens when use a button in a Card sent a channel), but what I see is Teams page in this "Teams browser".
I hope you can understand me
Thanks,
Diego- Gousia_Begum
Microsoft
diegoSpace If you are trying to open the link from a web page you could pass it under microsoftTeams.executeDeeplink('yourdeeplink url'); If you want to open it using a card, please try putting a Action.OpenURL which will directly open the chat with the user.