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
Click to show internal directories.
Click to hide internal directories.