builder

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryCallbackHandlerFunc

type QueryCallbackHandlerFunc func(query *tgbotapi.CallbackQuery) error

type Session

type Session struct {
	AuthorID   int64
	AuthorName string
	Categories []resource.Category
	Letters    []resource.Letter
	RoundsNum  int
	RoundTime  int
	Vote       bool
	Bloops     bool
	ChatID     int64
	CreatedAt  time.Time
	// contains filtered or unexported fields
}

func NewSession

func NewSession(
	tg *tgbotapi.BotAPI,
	chatID int64,
	authorID int64,
	authorName string,
	doneFn func(session *Session) error,
	warnFn func(session *Session) error,
	timeout time.Duration,
) (*Session, error)

func (*Session) Execute

func (bs *Session) Execute(upd tgbotapi.Update) error

func (*Session) Run

func (bs *Session) Run(ctx context.Context)

func (*Session) Stop

func (bs *Session) Stop()

Jump to

Keyboard shortcuts

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