tg

package
v0.0.0-...-3765fb9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 6 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 {
	*tgbotapi.BotAPI

	biz.IBiz
	// contains filtered or unexported fields
}

func NewBot

func NewBot(botAPI string, handler biz.IBiz, fs ...ConfigFunc) *Bot

func (Bot) Run

func (b Bot) Run(ctx context.Context)

type ConfigFunc

type ConfigFunc func(*RunningConfig)

func Debug

func Debug() ConfigFunc

type RunningConfig

type RunningConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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