notifybot

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

notifybot

library for telegram notification

Usage

go get github.com/wimark/notifybot

Wimark Systems, 2021

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(format string, values ...interface{})
	Info(format string, values ...interface{})
	Warning(format string, values ...interface{})
	Error(format string, values ...interface{})
}

type Pusher

type Pusher interface {
	Do(interface{})
	SetTemplateBuildFunc(func() []string, func(name string) ([]byte, error)) error
	SetLogger(logger Logger)
}

func InitPusher

func InitPusher(chatId int64, token string) (Pusher, error)

type Templater

type Templater interface {
	Do(date interface{}) (string, error)
}

Jump to

Keyboard shortcuts

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