bot

package
v0.0.0-...-fcbe8cc Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoToken - represents a validation error when Token not set
	ErrNoToken = errors.New("token for telegram bot not set")
	// ErrNoPassword - represents a validation error when Password not set
	ErrNoPassword = errors.New("password for email not set")
	// ErrNoEmailFrom - represents a validation error when EmailFrom not set
	ErrNoEmailFrom = errors.New("emailfrom not set")
	// ErrNoEmailTo - represents a validation error when EmailTo not set
	ErrNoEmailTo = errors.New("emailto not set")
	// ErrStartup - represents an error during bot initialization process
	ErrStartup = errors.New("could not create telebot instance")
)

Functions

This section is empty.

Types

type SendToKindleBot

type SendToKindleBot struct {
	Token     string
	EmailFrom string
	EmailTo   string
	SMTPHost  string
	SMTPPort  string
	Password  string
}

SendToKindleBot stores bot configuration

func (*SendToKindleBot) Start

func (b *SendToKindleBot) Start() error

Start starts bot. It is blocking. If there is an error during startup, returns it. Otherwise blocks

Jump to

Keyboard shortcuts

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