poshbotio / PoshBot

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

Feature Request: Send a typing indicator for Teams #127

Closed delrio1110 closed 5 years ago

delrio1110 commented 5 years ago

Adding a indicator for teams like the gear in slack.

https://docs.microsoft.com/en-us/azure/bot-service/nodejs/bot-builder-nodejs-send-typing-indicator?view=azure-bot-service-3.0

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment

devblackops commented 5 years ago

@delrio1110 I don't think Teams supports the level of reactions that Slack does so we can't send emojis like ⚙️ but we can send a typing... indicator of some sort. Looking through the nodejs code for bot builder, I don't think this is anything more than sending a text response.

delrio1110 commented 5 years ago

Thanks for looking into this. Here is an example picture. This would at least let you know that the bot received your message and is doing something.

https://1drv.ms/u/s!AnadlvFHl6lShMIEFmmS8FmzEWfVsw

devblackops commented 5 years ago

Thanks @delrio1110. I'll see what I can do.

AndrewPla commented 5 years ago

@devblackops how is this going? Is this something you could use a second set of hands on?

devblackops commented 5 years ago

Please do @AndrewPla. Looks like a a typing indicator can be sent via the API. https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector- activities?view=azure-bot-service-4.0#typing

The logic would go into the AddReaction() method of the backend. https://github.com/poshbotio/PoshBot/blob/master/PoshBot/Implementations/Teams/TeamsBackend.ps1#L466

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.