rveachkc / pymsteams

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

How to create show/hide text in the message body #77

Closed grayaii closed 2 years ago

grayaii commented 4 years ago

I see that pager duty creates messages that have collapsable text, like this: Before: before_click

After: after_click

Is this functionality possible with pymstreams? Thanks!

grayaii commented 4 years ago

I should have mentioned that I think it's called a "container": https://docs.microsoft.com/en-us/outlook/actionable-messages/adaptive-card

No idea if that helps or not.

rveachkc commented 3 years ago

pymsteams uses a much simpler api, which restricts formatting to options available in the MessageCard document: https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference I don't see any reference to containers in that document.

I would be open to updating the library to send Adaptive cards as well, I just don't have a ton of time to update it. Pull Requests are always welcome.