Documentation
¶
Index ¶
- func Filter[T Filterable](callable func(*gobotapi.Client, T), operands FilterOperand) func(*gobotapi.Client, T)
- type DataFilter
- type FilterOperand
- func And(options ...FilterOperand) FilterOperand
- func AntiFlood(numEvents int, inTime time.Duration, banTime time.Duration) FilterOperand
- func ChatID(idList ...int64) FilterOperand
- func Command(command string, aliasList ...string) FilterOperand
- func Commands(command []string, aliasList ...string) FilterOperand
- func Group() FilterOperand
- func Not(option FilterOperand) FilterOperand
- func Or(options ...FilterOperand) FilterOperand
- func Private() FilterOperand
- func SuperGroup() FilterOperand
- func UserID(idList ...int64) FilterOperand
- type Filterable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter[T Filterable](callable func(*gobotapi.Client, T), operands FilterOperand) func(*gobotapi.Client, T)
Types ¶
type DataFilter ¶
type FilterOperand ¶
type FilterOperand func(options *DataFilter) bool
func And ¶
func And(options ...FilterOperand) FilterOperand
func ChatID ¶
func ChatID(idList ...int64) FilterOperand
func Command ¶
func Command(command string, aliasList ...string) FilterOperand
func Commands ¶
func Commands(command []string, aliasList ...string) FilterOperand
func Group ¶
func Group() FilterOperand
func Not ¶
func Not(option FilterOperand) FilterOperand
func Or ¶
func Or(options ...FilterOperand) FilterOperand
func Private ¶
func Private() FilterOperand
func SuperGroup ¶
func SuperGroup() FilterOperand
func UserID ¶
func UserID(idList ...int64) FilterOperand
type Filterable ¶
type Filterable interface {
types.CallbackQuery |
types.ChatJoinRequest |
types.ChatMemberUpdated |
types.ChosenInlineResult |
types.InlineQuery |
types.Message |
types.PreCheckoutQuery |
types.ShippingQuery
}
Click to show internal directories.
Click to hide internal directories.