Documentation
¶
Index ¶
- func CallbackQueryData(data string) filters.FilterOperand
- func IsBackupFile() filters.FilterOperand
- type Bot
- func (b *Bot) IfElse(handler, handlerElse func(*core.UpdateContext, types.Message) error, ...) func(*core.UpdateContext, types.Message) error
- func (b *Bot) OnAdminCommand(command string, handler func(*core.UpdateContext, types.Message) error, ...)
- func (b *Bot) OnAdminMessage(handler func(*core.UpdateContext, types.Message) error, ...)
- func (b *Bot) OnAdminTextCommand(key translator.Key, handler func(*core.UpdateContext, types.Message) error, ...)
- func (b *Bot) OnCallbackQuery(data string, handler func(*core.UpdateContext, types.CallbackQuery) error, ...)
- func (b *Bot) OnCommand(command string, handler func(*core.UpdateContext, types.Message) error, ...)
- func (b *Bot) OnMessage(handler func(*core.UpdateContext, types.Message) error, ...)
- func (b *Bot) OnTextCommand(key translator.Key, handler func(*core.UpdateContext, types.Message) error, ...)
- func (b *Bot) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallbackQueryData ¶
func CallbackQueryData(data string) filters.FilterOperand
func IsBackupFile ¶
func IsBackupFile() filters.FilterOperand
Types ¶
type Bot ¶
type Bot struct {
Api *gobotapi.PollingClient
// contains filtered or unexported fields
}
func (*Bot) IfElse ¶
func (b *Bot) IfElse(handler, handlerElse func(*core.UpdateContext, types.Message) error, filterCondition filters.FilterOperand) func(*core.UpdateContext, types.Message) error
func (*Bot) OnAdminCommand ¶
func (b *Bot) OnAdminCommand(command string, handler func(*core.UpdateContext, types.Message) error, extraFilters ...filters.FilterOperand)
func (*Bot) OnAdminMessage ¶
func (b *Bot) OnAdminMessage(handler func(*core.UpdateContext, types.Message) error, extraFilters ...filters.FilterOperand)
func (*Bot) OnAdminTextCommand ¶
func (b *Bot) OnAdminTextCommand(key translator.Key, handler func(*core.UpdateContext, types.Message) error, extraFilters ...filters.FilterOperand)
func (*Bot) OnCallbackQuery ¶
func (b *Bot) OnCallbackQuery(data string, handler func(*core.UpdateContext, types.CallbackQuery) error, extraFilters ...filters.FilterOperand)
func (*Bot) OnCommand ¶
func (b *Bot) OnCommand(command string, handler func(*core.UpdateContext, types.Message) error, extraFilters ...filters.FilterOperand)
func (*Bot) OnMessage ¶
func (b *Bot) OnMessage(handler func(*core.UpdateContext, types.Message) error, extraFilters ...filters.FilterOperand)
func (*Bot) OnTextCommand ¶
func (b *Bot) OnTextCommand(key translator.Key, handler func(*core.UpdateContext, types.Message) error, extraFilters ...filters.FilterOperand)
Click to show internal directories.
Click to hide internal directories.