telegram

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	DB       bot.Database
	APIToken string
	FrontURI string
}

Sender implements moira sender interface via telegram

func (*Sender) Init

func (sender *Sender) Init(senderSettings map[string]string, logger notifier.Logger) error

Init read yaml config

func (*Sender) SendEvents

func (sender *Sender) SendEvents(events notifier.EventsData, contact notifier.ContactData, trigger notifier.TriggerData, 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