bot

package
v0.0.0-...-ea57e7b Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Client                  *tb.Bot
	Chat                    *tb.Chat
	DB                      *data.Database
	CheckInterval           time.Duration
	ChatDescriptionTemplate string
	// contains filtered or unexported fields
}

func NewBotFromOptions

func NewBotFromOptions(options Options) Bot

func (*Bot) Run

func (bot *Bot) Run()

type Options

type Options struct {
	BotToken                string
	ChatID                  string
	DataFilePath            string
	CheckInterval           time.Duration
	ChatDescriptionTemplate string
}

Options for bot, usually extracted from cli args or env vars.

Jump to

Keyboard shortcuts

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