rveachkc / pymsteams

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

Issues 44 45 #51

Closed jjh74 closed 4 years ago

jjh74 commented 5 years ago

This is related to issues 44/45. First commit adds optional _headers and _body parameters to addAction. (AFAIK these are relevant only for HttpPost action (https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#httppost-action)).

Second commit adds addRawPotentialAction that adds potentialaction without actioncard/inputs. See for example https://messagecardplayground.azurewebsites.net/ and "Github - Issue opened" sample ("close" button). (This is an action where you can click on the button and msteams does POST straight away without showing any more buttons/actions).

rveachkc commented 5 years ago

Thanks! I will take a look at this later when I can test it out.

rveachkc commented 4 years ago

oops, this was auto-closed when the develop branch was deleted. I'll try to restore, but it might be easier if this were resubmitted.