telegrambot

package
v0.0.0-...-794b143 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	Debug    bool   `toml:"debug"`
	Token    string `toml:"token"`
	LogLevel string `toml:"log_level"`
	Broker   *broker.BrokerConfig
	Store    *store.StoreConfig
}

func ReadConfig

func ReadConfig(path string) *BotConfig

type TelegramBot

type TelegramBot struct {
	Broker *broker.Broker
	API    *tgbotapi.BotAPI
	Store  *store.Store
	// contains filtered or unexported fields
}

func New

func New(config *BotConfig) *TelegramBot

func (*TelegramBot) Listen

func (b *TelegramBot) Listen() error

Jump to

Keyboard shortcuts

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