telegram

package
v2.5.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Photo type used if notification has plot
	Photo messageType = "photo"
	// Message type used if notification has not plot
	Message messageType = "message"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	DataBase moira.Database
	// contains filtered or unexported fields
}

Sender implements moira sender interface via telegram

func (*Sender) Init

func (sender *Sender) Init(senderSettings map[string]string, logger moira.Logger, location *time.Location, dateTimeFormat string) error

Init loads yaml config, configures and starts telegram bot

func (*Sender) SendEvents

func (sender *Sender) SendEvents(events moira.NotificationEvents, contact moira.ContactData, trigger moira.TriggerData, plot []byte, throttled bool) error

SendEvents implements Sender interface Send

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL