Documentation
¶
Index ¶
- type Bot
- func (b *Bot) ApiHandler(id string, h api.Handler)
- func (b *Bot) Handle(filter types.EventFilter, h types.Handler)
- func (b *Bot) HandleUpdate(ctx context.Context, upd *telegram.Update)
- func (b *Bot) SetupApiHandlersFromSpec(src []*spec.ApiHandler) error
- func (b *Bot) SetupHandlersFromSpec(src []*spec.Handler) error
- func (b *Bot) Start() error
- func (b *Bot) Stop() error
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(botAPI *telegram.BotAPI, state types.StateProvider, context types.ContextProvider, assets types.Assets, paymentProviders types.PaymentProviders, apiAddr string, log zerolog.Logger) *Bot
func (*Bot) SetupApiHandlersFromSpec ¶
func (b *Bot) SetupApiHandlersFromSpec(src []*spec.ApiHandler) error
Click to show internal directories.
Click to hide internal directories.