mirror of
https://github.com/nikoksr/notify.git
synced 2025-02-07 13:08:12 +02:00
Update service/msteams/ms_teams.go
Co-authored-by: Renan Bastos <renanbastos.tec@gmail.com>
This commit is contained in:
parent
94e2bf0c5c
commit
d8877b86dd
@ -14,7 +14,7 @@ type MSTeams struct {
|
||||
// New returns a new instance of a MSTeams notification service.
|
||||
// For more information about telegram api token:
|
||||
// -> https://github.com/atc0005/go-teams-notify#example-basic
|
||||
func New(apiToken string) (*MSTeams, error) {
|
||||
func New(apiToken string) *MSTeams {
|
||||
client := goteamsnotify.NewClient()
|
||||
|
||||
m := &MSTeams{
|
||||
@ -22,7 +22,7 @@ func New(apiToken string) (*MSTeams, error) {
|
||||
webHooks: []string{},
|
||||
}
|
||||
|
||||
return m, nil
|
||||
return m
|
||||
}
|
||||
|
||||
// DisableWebhookValidation disables the validation of webhook URLs, including the validation of known prefixes so that
|
||||
|
Loading…
x
Reference in New Issue
Block a user