teamsNotifyUser does not accept messages returned from MessageFactory. #4154
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Milestone
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Versions
What package version of the SDK are you using: 1.15.0
What nodejs version are you using: 16.11.0
What browser version are you using: n/a, this is a typescript compiler error
What os are you using: Win 11, 22H2, 22567.200
Describe the bug
When using teamsNotifyUser in a typescript application the example provided by the docs on how to notify someone does not work.
Instead, the following error is returned:
This is because
MessageFactory.text('Message');
returns aPartial<Activity>
whileteamsNotifyUser()
requires a straightActivity
.To Reproduce
bot/teamsBot.ts
replacewith
./bot
runnpm run build
Expected behavior
To be able to call
teamsNotifyUser()
with the value returned from the MessageFactory.Screenshots
Additional context
I debated creating a bug against the SDK or the docs but felt it made more sense to create it here.
The text was updated successfully, but these errors were encountered: