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 ¶ added in v1.4.0
type FilterOperand ¶
type FilterOperand func(options *DataFilter) bool
func And ¶
func And(options ...FilterOperand) FilterOperand
func ChatID ¶
func ChatID(idList ...int64) FilterOperand
func Command ¶ added in v1.4.1
func Command(command string, aliasList ...string) FilterOperand
func Commands ¶ added in v1.4.1
func Commands(command []string, aliasList ...string) FilterOperand
func Group ¶ added in v1.2.2
func Group() FilterOperand
func Not ¶ added in v1.1.8
func Not(option FilterOperand) FilterOperand
func Or ¶
func Or(options ...FilterOperand) FilterOperand
func Private ¶ added in v1.2.2
func Private() FilterOperand
func SuperGroup ¶ added in v1.2.2
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.