Skip to content

Commit

Permalink
Merge pull request #155 from atc0005/i127-prototype-mention-support
Browse files Browse the repository at this point in the history
Deprecate API interface, add user mention support
  • Loading branch information
atc0005 committed Feb 25, 2022
2 parents 137175c + 59c75e0 commit 2b9b721
Show file tree
Hide file tree
Showing 14 changed files with 1,749 additions and 171 deletions.
19 changes: 18 additions & 1 deletion README.md
@@ -1,7 +1,7 @@
<!-- omit in toc -->
# go-teams-notify

A package to send messages to Microsoft Teams (channels)
A package to send messages to a Microsoft Teams channel.

[![Latest release][githubtag-image]][githubtag-url]
[![Go Reference][goref-image]][goref-url]
Expand All @@ -27,6 +27,8 @@ A package to send messages to Microsoft Teams (channels)
- [How to create a webhook URL (Connector)](#how-to-create-a-webhook-url-connector)
- [Examples](#examples)
- [Basic](#basic)
- [User Mention](#user-mention)
- [Set custom user agent](#set-custom-user-agent)
- [Add an Action](#add-an-action)
- [Disable webhook URL prefix validation](#disable-webhook-url-prefix-validation)
- [Enable custom patterns' validation](#enable-custom-patterns-validation)
Expand Down Expand Up @@ -58,6 +60,7 @@ information.
`Facts`) and/or externally hosted images. or images (hosted externally)
- Support for [`Actions`][msgcard-ref-actions], allowing users to take quick
actions within Microsoft Teams
- Support for [user mentions][botapi-user-mentions] (limited)
- Configurable validation of webhook URLs
- enabled by default, attempts to match most common known webhook URL
patterns
Expand Down Expand Up @@ -184,6 +187,18 @@ This is an example of a simple client application which uses this library.

File: [basic](./examples/basic/main.go)

#### User Mention

This example illustrates the use of a user mention.

File: [basic](./examples/user-mention/main.go)

#### Set custom user agent

This example illustrates setting a custom user agent.

File: [custom-user-agent](./examples/custom-user-agent/main.go)

#### Add an Action

This example illustrates adding an [`OpenUri Action`][msgcard-ref-actions] to
Expand Down Expand Up @@ -241,3 +256,5 @@ using either this library or the original project.

[msgcard-ref]: <https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference>
[msgcard-ref-actions]: <https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions>

[botapi-user-mentions]: <https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/channel-and-group-conversations?tabs=json#work-with-mentions>

0 comments on commit 2b9b721

Please sign in to comment.