controller

package
v0.0.0-...-330fcde Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 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 BotController

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

func NewBotController

func NewBotController(
	telegramAPIKey string,
	repo *repo.Repository,
) (*BotController, error)

func (*BotController) SendMessage

func (bc *BotController) SendMessage(
	ctx context.Context,
	userExternalID int64,
	answer string,
	disableWebPagePreview bool,
) (err error)

func (*BotController) Start

func (bc *BotController) Start(ctx context.Context)

type HandlerFunc

type HandlerFunc func(ctx context.Context, update *models.Update, user *entities.User) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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