rveachkc / pymsteams

Format messages and post to Microsoft Teams.
https://pypi.org/project/pymsteams/
Apache License 2.0
428 stars 79 forks source link

Add tags to connectorcard #120

Closed stefanbie closed 2 years ago

stefanbie commented 2 years ago

Hi! I have tried to tag people and groups using connectorcard like this

webhook = "xxx"
myTeamsMessage = pymsteams.connectorcard(webhook)
msg = "Hello @Someone123"
myTeamsMessage.text(msg)
myTeamsMessage.send()

...but it does not seems to be working. Can this be achieved in some other way or else, could it be implemented? Thanks!

rveachkc commented 2 years ago

This is not supported by the connectorcard api.

stefanbie commented 2 years ago

Hi @rveachkc It should be supported according to https://docs.microsoft.com/en-us/answers/questions/616853/notifying-users-on-teams-channel-using-adaptive-ca.html

rveachkc commented 2 years ago

1 - that's not the api this library uses 2 - this is a duplicate issue. There are others discussing this, and even a PR for it.

stefanbie commented 2 years ago

Thanks @rveachkc, yould you please provide a link for that? :)

rveachkc commented 2 years ago

118

YugoHino commented 2 years ago

I think the link is here https://github.com/rveachkc/pymsteams/issues/11

stefanbie commented 2 years ago

Thanks!