bot

package
v0.0.0-...-64046f9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 23 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 {
	// contains filtered or unexported fields
}

func New

func New(
	buildInfo pkg.BuildInfo,
	client *tgbotapi.BotAPI,
	state state.Store,
	authSrv *service.Auth,
	docSrv *service.File,
	adminSrv *service.Admin,
	chatSrv *service.Chat,
	textHelp string,
) (*Bot, error)

func (*Bot) Self

func (bot *Bot) Self() tgbotapi.User

func (*Bot) ServeHTTP

func (bot *Bot) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Bot) SetWebhookIfNeed

func (bot *Bot) SetWebhookIfNeed(ctx context.Context, u string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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