rveachkc / pymsteams

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

Non-http link buttons don't show #108

Closed donquibeats closed 2 years ago

donquibeats commented 2 years ago

Thanks for making a really handy library for posting updates to Teams.

I'm using the addLinkButton() call with the button text and a URL.

I'm finding that if I use a http:// URL, it works fine: .addLinkButton("Google it", "http://www.google.com/")

However when I try to use a URL that's a local protocol supported on our company network, Teams doesn't show the button. .addLinkButton("Open link", "localsystem://id432") doesn't work.

I can't find anything in the Webhook API to either confirm or deny whether this is a Teams thing and it simply doesn't support custom protocol URL's, or whether there's something I could do differently in pymsteams in order to make a local button show?

Thanks

rveachkc commented 2 years ago

Teams requires a public url. See https://github.com/rveachkc/pymsteams/issues/106#issuecomment-905710803 for more info.

donquibeats commented 2 years ago

Thanks for confirming