rveachkc / pymsteams

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

[Question] Delete message generator by Incoming Webhook #115

Closed quyvsquy closed 2 years ago

quyvsquy commented 2 years ago

Hi, thank you for creating an interesting repo to format messages and post to Microsoft Teams. But, I have a question, how can I delete a conversation when call send() method? Thank you,

rveachkc commented 2 years ago

I'm not entirely sure what you are asking about.

In the event you are wanting to delete a message from appearing in a teams chat - apologies, but that is not supported.

If you wanting to delete the teams connector card object from memory, you would need to delete the object:

myTeamsMessage = pymsteams.async_connectorcard("<Microsoft Webhook URL>")
myTeamsMessage.text("This is my message")
del myTeamsMessage