telegramnotifier

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	Bot *tb.Bot
	// contains filtered or unexported fields
}

func New

func New(bot *tb.Bot, authToken string, options ...NotifyOption) *Notifier

start bot daemon

func (*Notifier) Notify

func (n *Notifier) Notify(format string, args ...interface{})

func (*Notifier) NotifyTo

func (n *Notifier) NotifyTo(channel, format string, args ...interface{})

type NotifyOption

type NotifyOption func(notifier *Notifier)

func WithRedisPersistence

func WithRedisPersistence(redis *bbgo.RedisPersistenceService) NotifyOption

Jump to

Keyboard shortcuts

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