Link to a personal chat from Task browser

%3CLINGO-SUB%20id%3D%22lingo-sub-1195863%22%20slang%3D%22en-US%22%3ELink%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1195863%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI%20have%20a%20bot%20with%20commands%20and%20messaging%20extensions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20send%20a%20card%20from%20the%20Bot%20as%20a%20response%20for%20a%20command%20received%20from%20Teams%2C%20I%20can%20add%20a%20link%20to%20the%20personal%20chat%20of%20the%20user%20who%20sent%20the%20command%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ElinkToPersonalChat%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3DuserIdOffice365%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3DuserIdOffice365%3C%2FA%3E%22%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECard%20text%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22bla%20bla%3A%20%5BOpen%20personal%20chat%5D(linkToPersonalChat)%22%3C%2FP%3E%3CP%3EAnd%20the%20personal%20chat%20is%20open%20in%20Teams%20client.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20If%20I%20try%20to%20open%20this%20personal%20chat%20from%20a%20Task%20(Messaging%20Extensions)%2C%20Teams%20web%20is%20open%20inside%20the%20Teams%20browser%2C%20instead%20of%20going%20diretly%20to%20the%20chat.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWeb%20code%3A%3C%2FP%3E%3CP%3EmyElement.innerHtml%20%3D%20%22blabla%3A%20%22%20%2B%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2FlinkToPersonalChat%22%20target%3D%22_blank%22%3EOpen%20personal%20chat%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20go%20to%20the%20personal%20chat%20from%20a%20Task%20web%20browser%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3EDiego%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1195863%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1200028%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1200028%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402611%22%20target%3D%22_blank%22%3E%40diegoSpace%3C%2FA%3E%26nbsp%3BWhat%20do%20you%20mean%20by%20a%20Task%20web%20browser%3F%20Could%20you%20please%20share%20some%20screenshots%20of%20the%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1204206%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1204206%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3BThanks%20for%20your%20reply%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20use%20Messaging%20Extensions%20I%20am%20receiving%20a%20'FetchTask'%20event%2C%20and%20I%20am%20returning%20a%20task%20with%20a%20URL%2C%20so%20a%20%22Teams%20browser%22%20is%20open.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20web%20page%20displayed%20with%20that%20URL%2C%20I%20add%20a%20text%20link%20(%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2FlinkToPersonalChat%22%20target%3D%22_blank%22%3EOpen%20personal%20chat%3C%2FA%3E).%20I%20want%20this%20link%20opens%20directly%20the%20personal%20chat%20in%20Teams%20client%20(as%20happens%20when%20use%20a%20button%20in%20a%20Card%20sent%20a%20channel)%2C%20but%20what%20I%20see%20is%20Teams%20page%20in%20this%20%22Teams%20browser%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20you%20can%20understand%20me%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3EDiego%3C%2FP%3E%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ESpoiler%3C%2FA%3E%3CNOSCRIPT%3E(Highlight%20to%20read)%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%26nbsp%3B%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1208179%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1208179%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402611%22%20target%3D%22_blank%22%3E%40diegoSpace%3C%2FA%3E%26nbsp%3BIf%20you%20are%20trying%20to%20open%20the%20link%20from%20a%20web%20page%20you%20could%20pass%20it%20under%20microsoftTeams.executeDeeplink('yourdeeplink%20url')%3B%20If%20you%20want%20to%20open%20it%20using%20a%20card%2C%20please%20try%20putting%20a%20Action.OpenURL%20which%20will%20directly%20open%20the%20chat%20with%20the%20user.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1208846%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1208846%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3EThanks%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20try%20to%20use%20'microsoftTeams.executeDeeplink'%20in%20the%20web%20page%20displayed%20in%20a%20task%20I%20get%20an%20error%3A%20'microsoftTeams.executeDeeplink%20is%20not%20a%20function'.%26nbsp%3BHowever%2C%20'microsoftTeams.tasks.submitTask()%3B'%20is%20working%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20I%20need%20to%20add%20something%20to%20use%20the%20'executeDeeplink'%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1213238%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1213238%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402611%22%20target%3D%22_blank%22%3E%40diegoSpace%3C%2FA%3E%26nbsp%3BCould%20you%20please%20confirm%20if%20you%20have%20included%20the%20script%20for%20MsTeams%20in%20your%20web%20page%3F%3CBR%20%2F%3E%22%3CA%20href%3D%22https%3A%2F%2Funpkg.com%2F%40microsoft%2Fteams-js%401.4.2%2Fdist%2FMicrosoftTeams.js%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Funpkg.com%2F%40microsoft%2Fteams-js%401.4.2%2Fdist%2FMicrosoftTeams.js%3C%2FA%3E%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3BAfter%20adding%20this%20you%20can%20use%20it%20like%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSCRIPT%3E%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Blt%3BBR%20%2F%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3BmicrosoftTeams.initialize()%3B%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Blt%3BBR%20%2F%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3BmicrosoftTeams.executeDeepLink(%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3B%2339%3Byour%20Deeplink%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3B%2339%3B)%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Blt%3BBR%20%2F%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3B%3C%2FSCRIPT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1217660%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1217660%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3BI%20have%20this%3A%3C%2FP%3E%3CPRE%3E%3CSPAN%3E%3CSCRIPT%3E%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3Bsrc%3D'https%3A%2F%2Fstatics.teams.cdn.office.net%2Fsdk%2Fv1.5.2%2Fjs%2FMicrosoftTeams.min.js'%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bgt%3B%3C%2FSCRIPT%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E(but%20I%20have%20also%20tried%20now%20with%20the%20link%20you%20provided)%2C%20but%20the%20deeplink%20does%20not%20work%20for%20me%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20in%20my%20page%20code%20I%20have%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSCRIPT%3E%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bnbsp%3BmicrosoftTeams.initialize()%3B%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bnbsp%3B%20%3C%2FSCRIPT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20in%20the%20click%20event%20of%20a%20button%20I%20set%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bfunction%20onClick()%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20alert(%22click%22)%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BmicrosoftTeams.executeDeeplink('%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3Dbcb3f5ab-7185-4de5-8a70-8279b23a5925%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2Fl%2Fchat%2F0%2F0%3Fusers%3Dbcb3f5ab-7185-4de5-8a70-8279b23a5925%3C%2FA%3E')%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FP%3E%3CP%3EBut%20the%20link%20does%20not%20work.%20If%20i%20paste%20this%20link%20in%20a%20channel%2C%20it%20works%20(private%20chat%20is%20open)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20use%20'microsoftTeams.tasks.submitTask()%3B'%20it%20works%20(event%20received%20in%20my%20bot)%2C%20so%26nbsp%3BmicrosoftTeams%20API%20seems%20to%20be%20working...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1219172%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1219172%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402611%22%20target%3D%22_blank%22%3E%40diegoSpace%3C%2FA%3E%26nbsp%3BAre%20you%20trying%20to%20deeplink%20to%20a%20chat%20with%20the%20Bot%3F%20Could%20you%20please%20share%20a%20video%20recording%20of%20the%20issue%20you%20are%20seeing%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1219258%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1219258%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3BI%20can%20not%20record%2C%20but%20please%20see%20my%20images%2C%20which%20show%20the%20problem.%20In%20my%20task%20I%20have%20a%20page%20with%20the%20link%2C%20and%20when%20I%20press%20it%20I%20would%20like%20Teams%20goes%20to%20personal%20channel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20I%20could%20close%20the%20dialog%20with%20a%20'submitTask()'%2C%20and%20open%20the%20personal%20chat%20from%20bot%20code.%20But%20is%20it%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22diegoSpace_0-1583828127604.png%22%20style%3D%22width%3A%20575px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F176126iE3BC7B7673BA8B5C%2Fimage-dimensions%2F575x206%3Fv%3D1.0%22%20width%3D%22575%22%20height%3D%22206%22%20title%3D%22diegoSpace_0-1583828127604.png%22%20alt%3D%22diegoSpace_0-1583828127604.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1258230%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1258230%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402611%22%20target%3D%22_blank%22%3E%40diegoSpace%3C%2FA%3E%26nbsp%3BDo%20you%20have%20this%20link%20inside%20microsoftTeams.executedeeplink()%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1304606%22%20slang%3D%22en-US%22%3ERe%3A%20Link%20to%20a%20personal%20chat%20from%20Task%20browser%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1304606%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3BThanks%20for%20your%20help.%20I%20don.t%20know%20what%20I%20did%20wrong%20but%20now%20i%20get%20it%20working%2C%20with%20the%20link%26nbsp%3B%3CSPAN%3Einside%20microsoftTeams.executedeeplink()%2C%20as%20you%20said...%20Regards!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

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

10 Replies

@diegoSpace What do you mean by a Task web browser? Could you please share some screenshots of the issue?

@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

Spoiler
 

@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.

@Gousia_BegumThanks for your reply.

 

If I try to use 'microsoftTeams.executeDeeplink' in the web page displayed in a task I get an error: 'microsoftTeams.executeDeeplink is not a function'. However, 'microsoftTeams.tasks.submitTask();' is working

 

Do I need to add something to use the 'executeDeeplink'?

@diegoSpace Could you please confirm if you have included the script for MsTeams in your web page?
"https://unpkg.com/@microsoft/teams-js@1.4.2/dist/MicrosoftTeams.js"

 After adding this you can use it like:

<script>
microsoftTeams.initialize();
microsoftTeams.executeDeepLink('your Deeplink')
</script>

@Gousia_Begum I have this:

<script src='https://statics.teams.cdn.office.net/sdk/v1.5.2/js/MicrosoftTeams.min.js'></script>

(but I have also tried now with the link you provided), but the deeplink does not work for me

 

Below in my page code I have:

     <script > microsoftTeams.initialize();  </script>

 

and in the click event of a button I set:

     function onClick() {
          alert("click");
         microsoftTeams.executeDeeplink('https://teams.microsoft.com/l/chat/0/0?users=bcb3f5ab-7185-4de5-8a70-8279b23a5925');
      }

But the link does not work. If i paste this link in a channel, it works (private chat is open)

 

If I use 'microsoftTeams.tasks.submitTask();' it works (event received in my bot), so microsoftTeams API seems to be working...

 

 

@diegoSpace Are you trying to deeplink to a chat with the Bot? Could you please share a video recording of the issue you are seeing?

@Gousia_Begum I can not record, but please see my images, which show the problem. In my task I have a page with the link, and when I press it I would like Teams goes to personal channel.

 

Maybe I could close the dialog with a 'submitTask()', and open the personal chat from bot code. But is it possible?

 

diegoSpace_0-1583828127604.png

 

@diegoSpace Do you have this link inside microsoftTeams.executedeeplink()?

@Gousia_Begum Thanks for your help. I don.t know what I did wrong but now i get it working, with the link inside microsoftTeams.executedeeplink(), as you said... Regards!