Versions in this module Expand all Collapse all v0 v0.0.2 Jun 9, 2026 v0.0.1 May 28, 2026 Changes in this version + const OnBotAdded + const OnBotRemoved + const OnBotStarted + const OnBotStopped + const OnChatTitleChangedEvent + const OnDialogCleared + const OnDialogMuted + const OnDialogRemoved + const OnDialogUnmuted + const OnMessageCallback + const OnMessageCreated + const OnMessageEdited + const OnMessageRemoved + const OnText + const OnUserAdded + const OnUserRemoved + type Api struct + Info model.BotInfo + func NewApi(token string, opt ...Opt) (*Api, error) + func (a *Api) Client() *maxbot.Api + func (a *Api) Handle(endpoint string, h HandlerFunc, m ...MiddlewareFunc) + func (a *Api) HandleCallback(endpoint string, h HandlerFunc, m ...MiddlewareFunc) + func (a *Api) OnError(err error, c Context) + func (a *Api) ProcessContext(c Context) + func (a *Api) ProcessUpdate(ctx context.Context, u model.Update) + func (a *Api) Start() + func (a *Api) Stop() + func (a *Api) Use(middleware ...MiddlewareFunc) + func (a *Api) WebhookHandler() http.HandlerFunc + type Context interface + Context func() context.Context + Delete func(opts ...Option) error + Edit func(text string, opts ...Option) error + Send func(text string, opts ...Option) error + Update func() model.Update + func NewContext(ctx context.Context, b *maxbot.Api, u model.Update) Context + type Group struct + func (g *Group) Handle(endpoint string, h HandlerFunc, m ...MiddlewareFunc) + func (g *Group) Use(middleware ...MiddlewareFunc) + type HandlerFunc func(Context) error + type MiddlewareFunc func(HandlerFunc) HandlerFunc + type Opt func(cli *Api) + func WithBaseURL(baseURL string) Opt + func WithErrorHandle(f func(error, Context)) Opt + func WithHTTPClient(cli maxbot.HttpClient) Opt + func WithPollingPause(d time.Duration) Opt + func WithPollingTimeout(d time.Duration) Opt + func WithWebhook(webhookUrl, secret string, types []string) Opt + type Option func(msg *maxbot.Message) + func WithKeyboard(keyboard *model.Keyboard) Option