Teams Popout chat through coding - microsoft-teams

I want to open the teams chat as pop out chat instead of opening in the chat window. When I used the below code through SPFx, I am able to open the chat window
window.open('MSTeams:/l/chat/0/0?users=' + userID, 'popup', 'width=600,height=600,resizable=yes,fullscreen=no');
return false;
but I want to open the chat window as pop out chat.
I tried
MSTeams:/l/chat/pop/1/0?users=useremail
and
MSTeams:/l/chat/1/1?users=useremail
but its not working please help me on this.

Teams has inbuilt pop out chat feature, there is no official sample code or support available for custom apps. I've raised a Feature request in backlog item.

Related

Clicking notification take me to generic feed rather than to chat section

When I receive a notification In Teams from Bot A and I click on the popup the system does not navigate to the Bot A chat section, but to the generic Feed.
clicking on this take me to generic feed i.e
We got an update from the engineering team, this is expected behavior. The left side panel will just stay at "Feed", which is by design.

Microsoft Teams call and chat button

I'm quite new to bot framework, we are working on a MS teams app in which i'm using a adaptive card. On that card i'm having buttons for MS teams call and chat. So how to implement a call and chat button for a dynamic users selected from message extension list.
I'm completely new to bot framework
Chat - Please take a look at Deeplink to chat documentation. Use openURL action and specify the URL in value field.
Calling - Currently, there is no Deeplink to initiate a call. Option would be use Calls and online meetings bots.

Add MS Planner tab to group chat in MS Teams

How do I add a Microsoft Planner tab to a group chat in Microsoft Teams?
I can add a Atlassian Trello tab to group chat.
By default
Owners and team members can add tabs to a channel, private chat, and
group chat to help integrate their cloud services. Tabs can be added
to help users easily access and manage the data they need or interact
with the most.
For some reason some of the apps are not appearing in Group chat.
But I have carefully checked the channels and private chat. I can able to add the planner app. For Group chat certainly some updates /settings are missing.
However the solution for your question is. ( Bit of hacky way) But it can work
Create a Group Chat with your team members
Hit the + tab and Select website. Please see screen shot below
Enter your Tab name as "MS Planner" and in the URL https://tasks.office.com/ add the link
Select the checkbox "Post to the chat about this tab" so that your other group chat members know
When you hit save you should be definitely seeing the Planner > Signin and start using it.
Here is the confirmation
Hope it helps.

Chat history Persistence in MicroSoft Botframework WebChat window

I have a requirement of maintaining chat history and loading them back in a window after a page refresh or close and opening of the window.
ISSUE : Buttons/carousel/Adaptive cards/Hero Cards events/ properties are not loading (ie; when I click on button or any event, actions are not happening).
DESCRIPTION:
In order to achieve the requirement i had 2 options.
BotFramework _ Directline JS
I guess using this we can only get conversation history and where we couldn't load back the conversation history in chat window.
Though we can get the conversation history we have to send all the messages to bot again.
So i had opted 2nd one.
Store the html controls and Load it in the bot div: When sending or receiving message action is happening from bot am storing the html controls(i.e; controls under wc-message-groups class in local storage) and binding back to the div on page load if data exists.
This works for me to show conversation history in a chat window. But I am not able to get the events/actions for buttons.
Can we do this with Directline JS or is there any option to load properties/events to controls?
Please help me with this issue.
Thanks in Advance
I would start by taking a look at this thread out the Webchat GitHub repo. There is a good discussion going on about how this may be accomplished.
I also created this project in C# using webchat which will provide chat history in the webchat control. The project uses this pull request branch which you would also need to use. Hope this helps, good luck.

Can't add bot to group chat

I've created a bot (a simple echo bot) and deployed it to Azure. Everything works well now and I can talk to the bot in the desktop Skype client (Windows 10 app).
However, I can't seem to be able to add the bot to an existing group chat. When I click on the add button the list of contacts to add doesn't have my bot in it, which is weird because I've added it to my contacts.
https://stackoverflow.com/a/41644443/249230
^ According to that post I need to create a "private chat" with my bot and then I'll be able to add it to group chats, but I have no idea how to do that.
I haven't published my bot, but I did enable "Allow adding to a group" in bot settings on https://dev.botframework.com.
Any idea why it's not working?
Private chat is talking directly to your bot. If you have added it to your contacts, it should be easy to open a direct conversation with it by double clicking.
Then you can add people in the conversation using the top right button:
Then you will have your group chat working:
Note for other people asking the same question (but you already mentioned that you did it), don't forget to activate the group conversation for your bot in botframework portal, in Skype channel settings
Have you tried to add a bot to group?:
https://telegram.me/[botname]?startgroup=foo

Resources