poshbotio / PoshBot

Powershell-based bot framework
MIT License
536 stars 108 forks source link

Send typing indicator to Teams conversation #161

Closed AndrewPla closed 5 years ago

AndrewPla commented 5 years ago

Description

I added the typing indicator per the documentation at https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-activities?view=azure-bot-service-4.0#typing

It is worth noting that I haven't been able to get it to work in a channel, just a DM. I didn't see anything in the documentation indicating that it's only supported in DM conversations, but I am unable to see typing indicators from other Users typing in channels. Feedback is appreciated on this part. The code will attempt to send the typing indicator whether or not the message was received from a DM.

Feedback is appreciated

Related Issue

Addresses Issue #127 - Feature Request: Send a typing indicator for Teams

Motivation and Context

This will allow you to receive a typing indicator in Teams. This is great for longer running commands because it let's the user know the message was received and the bot is working.

How Has This Been Tested?

I have been using this for a week or so in our environment. It sends a typing indicator to DM conversations but I'm not seeing a response when the bot replies to a channel.

Screenshots (if appropriate):

image

Types of changes

Checklist:

devblackops commented 5 years ago

Awesome @AndrewPla. I'll check this out.

devblackops commented 5 years ago

@AndrewPla This looks good to me! It's a shame Teams doesn't support this in normal channels.

I can't merge this while it's in draft mode. Can you change the status please?

From the looks of this user voice item, support in channels may be a ways off. https://microsoftteams.uservoice.com/forums/555103-public/suggestions/18675718-display-user-is-typing-indication-also-in-teams

AndrewPla commented 5 years ago

Draft status was removed.