Documentation ¶
Index ¶
- type OnCancelFunc
- type OnErrorHandler
- type Option
- type Progress
- func (p *Progress) Delete(ctx context.Context, b *bot.Bot)
- func (p *Progress) Done(ctx context.Context, b *bot.Bot)
- func (p *Progress) Prefix() string
- func (p *Progress) SetValue(ctx context.Context, b *bot.Bot, value float64)
- func (p *Progress) Show(ctx context.Context, b *bot.Bot, chatID any) error
- type RenderTextFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnCancelFunc ¶
type OnErrorHandler ¶
type OnErrorHandler func(err error)
type Option ¶
type Option func(p *Progress)
func WithCancel ¶
func WithCancel(buttonText string, deleteOnCancel bool, onCancel OnCancelFunc) Option
WithCancel sets the cancel function.
func WithPrefix ¶ added in v0.3.1
WithPrefix is a keyboard option that sets a prefix for the widget
func WithRenderTextFunc ¶
func WithRenderTextFunc(f RenderTextFunc) Option
WithRenderTextFunc sets the render text function.
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
type RenderTextFunc ¶
Click to show internal directories.
Click to hide internal directories.