telegram

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration added in v1.1.4

type Configuration interface {
	GetBotToken() string
	GetChatIDs() []int64
}

Configuration provides the Telegram configuration

type Notifier

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

Notifier is the Telegram notifier

func NewNotifier added in v1.1.3

func NewNotifier(c Configuration) (n *Notifier)

NewNotifier creates a new Telegram product notifier

func (*Notifier) IsConfigured

func (n *Notifier) IsConfigured() bool

IsConfigured tells if the Telegram Notifier is configured

func (*Notifier) NotifyChanges added in v1.1.3

func (n *Notifier) NotifyChanges(p *product.Product)

NotifyChanges sends a Telegram bot message notifying a product change

Jump to

Keyboard shortcuts

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