...

Package telegram

import "github.com/prometheus/alertmanager/notify/telegram"
Overview
Index

Overview ▾

type Notifier

Notifier implements a Notifier for telegram notifications.

type Notifier struct {
    // contains filtered or unexported fields
}

func New

func New(conf *config.TelegramConfig, t *template.Template, l log.Logger, httpOpts ...commoncfg.HTTPClientOption) (*Notifier, error)

New returns a new Telegram notification handler.

func (*Notifier) Notify

func (n *Notifier) Notify(ctx context.Context, alert ...*types.Alert) (bool, error)