sender

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidTelegramID = errors.New("invalid telegram id")
	ErrSendFailed        = errors.New("send failed")
)
View Source
var (
	Messengers = map[string]Messenger{}
)

Functions

func Init

func Init(conf config.Bot) (err error)

Types

type Letter

type Letter struct {
	Sender    string
	Recipient string
	Subject   string
	Content   string
}

type Messenger

type Messenger interface {
	Send(*Letter) error
}

Jump to

Keyboard shortcuts

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