Documentation
¶
Index ¶
- type DisableCore
- type Disabler
- func (d *Disabler) ConsiderCaption() bool
- func (d *Disabler) ConsiderChannels() bool
- func (d *Disabler) ConsiderChannelsAndEdits() bool
- func (d *Disabler) ConsiderEdits() bool
- func (d *Disabler) GetGlobalIgnoredChats() []int64
- func (d *Disabler) GetTriggers() []rune
- func (d *Disabler) IsDisabled(chatId int64, command string) bool
- func (d *Disabler) IsGlobalDisabled(command string) bool
- func (d *Disabler) IsGlobalIgnored(chatId int64) bool
- func (d *Disabler) IsInternalDisabled(chatId int64, command string) bool
- func (d *Disabler) IsUsingInternals() bool
- type DisablerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisableCore ¶
type Disabler ¶
type Disabler struct {
// contains filtered or unexported fields
}
func NewDisabler ¶
func NewDisabler(dispatcher *ext.Dispatcher, config *DisablerConfig) *Disabler
func (*Disabler) ConsiderCaption ¶
func (*Disabler) ConsiderChannels ¶
func (*Disabler) ConsiderChannelsAndEdits ¶
func (*Disabler) ConsiderEdits ¶
func (*Disabler) GetGlobalIgnoredChats ¶
func (*Disabler) GetTriggers ¶
func (*Disabler) IsGlobalDisabled ¶
func (*Disabler) IsGlobalIgnored ¶
func (*Disabler) IsInternalDisabled ¶
func (*Disabler) IsUsingInternals ¶
type DisablerConfig ¶
type DisablerConfig struct {
Edits bool
Channels bool
UseInternal bool
Caption bool
Triggers []rune
HandlerGroup int
GlobalIgnoreChats []int64
Core DisableCore
}
func GetDefaultConfig ¶
func GetDefaultConfig() *DisablerConfig
Click to show internal directories.
Click to hide internal directories.