Documentation ¶
Index ¶
- Constants
- type Announce
- type BanRegex
- type ByPickCount
- type Chats
- type Clear
- type Command
- type CommandHandler
- type Event
- type FilterInfo
- type FilterOnOff
- type Filters
- type GetUpdateNews
- type List
- type ListRegex
- type MarkdownFilterInfoFormatter
- type NoUpdateNews
- type OnOff
- type RestartNotif
- type RmSticker
- type STFU
- type Say
- type Scrutiny
- type Start
- type Stickers
- type UnSTFU
- type UnbanRegex
- type Unscrutiny
Constants ¶
View Source
const MissingUserNameMessage = "_Нужен один аргумент — ник пользователя._"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Announce ¶
type Announce struct {
// contains filtered or unexported fields
}
func NewAnnounce ¶
func NewAnnounce(s sender, subscriberChatIDsGetter subscriberChatIDsGetter) *Announce
func (Announce) SuperAdminOnly ¶
type BanRegex ¶
type BanRegex struct {
// contains filtered or unexported fields
}
func NewBanRegex ¶
func NewBanRegex(s sender, b banner, r newlyDisallowedMessageCleaner) *BanRegex
func (BanRegex) SuperAdminOnly ¶
type ByPickCount ¶
type ByPickCount []db.EventPickCountEntry
func (ByPickCount) Len ¶
func (c ByPickCount) Len() int
func (ByPickCount) Less ¶
func (c ByPickCount) Less(i, j int) bool
func (ByPickCount) Swap ¶
func (c ByPickCount) Swap(i, j int)
type Chats ¶
type Chats struct {
// contains filtered or unexported fields
}
func (Chats) SuperAdminOnly ¶
type Clear ¶
type Clear struct {
// contains filtered or unexported fields
}
func (Clear) SuperAdminOnly ¶
type CommandHandler ¶
type CommandHandler struct { Commands []Command DefaultHandler func(msg *tgbotapi.Message) ForbiddenHandler func(msg *tgbotapi.Message) // contains filtered or unexported fields }
func NewCommandHandler ¶
func NewCommandHandler(superAdminChecker superAdminChecker) *CommandHandler
func (CommandHandler) Handle ¶
func (h CommandHandler) Handle(msg *tgbotapi.Message)
func (CommandHandler) List ¶
func (h CommandHandler) List() []Command
func (*CommandHandler) ListForMenu ¶
func (h *CommandHandler) ListForMenu() []tgbotapi.BotCommand
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func NewEvent ¶
func NewEvent( snd sender, memp memberDB, chs chatSelector, eopdl eventOncePerDayLimiter, pickCnt pickCounter, ) *Event
func (Event) SuperAdminOnly ¶
type FilterInfo ¶
type FilterInfo interface { Description() filters.Description ScrutinyModeOnly() bool }
type FilterOnOff ¶
type FilterOnOff struct {
// contains filtered or unexported fields
}
func NewFilterOff ¶
func NewFilterOff(s sender, f filterToggler, v filterIDValidator) *FilterOnOff
func NewFilterOn ¶
func NewFilterOn(s sender, f filterToggler, v filterIDValidator) *FilterOnOff
func (FilterOnOff) Execute ¶
func (f FilterOnOff) Execute(msg *tgbotapi.Message)
func (FilterOnOff) Help ¶
func (f FilterOnOff) Help() string
func (FilterOnOff) Hidden ¶
func (FilterOnOff) Hidden() bool
func (FilterOnOff) Name ¶
func (f FilterOnOff) Name() string
func (FilterOnOff) SuperAdminOnly ¶
func (FilterOnOff) SuperAdminOnly() bool
type Filters ¶
type Filters struct {
// contains filtered or unexported fields
}
func NewFilters ¶
func NewFilters( snd sender, fil filterInfoLister, fec filterEnabledChecker, fif filterInfoFormatter, ) *Filters
func (Filters) SuperAdminOnly ¶
type GetUpdateNews ¶
type GetUpdateNews struct {
// contains filtered or unexported fields
}
func NewGetUpdateNews ¶
func NewGetUpdateNews(snd sender, sub subscriber) *GetUpdateNews
func (GetUpdateNews) Execute ¶
func (g GetUpdateNews) Execute(msg *tgbotapi.Message)
func (GetUpdateNews) Help ¶
func (GetUpdateNews) Help() string
func (GetUpdateNews) Hidden ¶
func (GetUpdateNews) Hidden() bool
func (GetUpdateNews) Name ¶
func (GetUpdateNews) Name() string
func (GetUpdateNews) SuperAdminOnly ¶
func (GetUpdateNews) SuperAdminOnly() bool
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (List) SuperAdminOnly ¶
type ListRegex ¶
type ListRegex struct {
// contains filtered or unexported fields
}
func NewListRegex ¶
func NewListRegex(s sender, b bannedRegexGetter) *ListRegex
func (ListRegex) SuperAdminOnly ¶
type MarkdownFilterInfoFormatter ¶
type MarkdownFilterInfoFormatter struct{}
func (MarkdownFilterInfoFormatter) Format ¶
func (MarkdownFilterInfoFormatter) Format(info FilterInfo, isEnabled bool) string
type NoUpdateNews ¶
type NoUpdateNews struct {
// contains filtered or unexported fields
}
func NewNoUpdateNews ¶
func NewNoUpdateNews(s sender, u unsubscriber) *NoUpdateNews
func (NoUpdateNews) Execute ¶
func (n NoUpdateNews) Execute(msg *tgbotapi.Message)
func (NoUpdateNews) Help ¶
func (NoUpdateNews) Help() string
func (NoUpdateNews) Hidden ¶
func (NoUpdateNews) Hidden() bool
func (NoUpdateNews) Name ¶
func (NoUpdateNews) Name() string
func (NoUpdateNews) SuperAdminOnly ¶
func (NoUpdateNews) SuperAdminOnly() bool
type OnOff ¶
type OnOff struct {
// contains filtered or unexported fields
}
func (OnOff) SuperAdminOnly ¶
type RestartNotif ¶
type RestartNotif struct {
// contains filtered or unexported fields
}
func NewRestartNotif ¶
func NewRestartNotif(s superAdminChatIDSetter) *RestartNotif
func (RestartNotif) Execute ¶
func (r RestartNotif) Execute(msg *tgbotapi.Message)
func (RestartNotif) Help ¶
func (RestartNotif) Help() string
func (RestartNotif) Hidden ¶
func (RestartNotif) Hidden() bool
func (RestartNotif) Name ¶
func (RestartNotif) Name() string
func (RestartNotif) SuperAdminOnly ¶
func (RestartNotif) SuperAdminOnly() bool
type RmSticker ¶
type RmSticker struct {
// contains filtered or unexported fields
}
func NewRmSticker ¶
func NewRmSticker(snd sender, sr stickerRemover) *RmSticker
func (RmSticker) SuperAdminOnly ¶
type STFU ¶
type STFU struct {
// contains filtered or unexported fields
}
func (STFU) SuperAdminOnly ¶
type Say ¶
type Say struct {
// contains filtered or unexported fields
}
func (Say) SuperAdminOnly ¶
type Scrutiny ¶
type Scrutiny struct {
// contains filtered or unexported fields
}
func NewScrutiny ¶
func NewScrutiny(snd sender, sa scrutinyAdder) *Scrutiny
func (Scrutiny) SuperAdminOnly ¶
type Start ¶
type Start struct {
// contains filtered or unexported fields
}
func (Start) SuperAdminOnly ¶
type Stickers ¶
type Stickers struct {
// contains filtered or unexported fields
}
func NewStickers ¶
func NewStickers(s sender, sl stickerLister) *Stickers
func (Stickers) SuperAdminOnly ¶
type UnSTFU ¶
type UnSTFU struct {
// contains filtered or unexported fields
}
func (UnSTFU) SuperAdminOnly ¶
type UnbanRegex ¶
type UnbanRegex struct {
// contains filtered or unexported fields
}
func NewUnbanRegex ¶
func NewUnbanRegex(s sender, u unbanner) *UnbanRegex
func (UnbanRegex) Execute ¶
func (u UnbanRegex) Execute(msg *tgbotapi.Message)
func (UnbanRegex) Help ¶
func (UnbanRegex) Help() string
func (UnbanRegex) Hidden ¶
func (UnbanRegex) Hidden() bool
func (UnbanRegex) Name ¶
func (UnbanRegex) Name() string
func (UnbanRegex) SuperAdminOnly ¶
func (UnbanRegex) SuperAdminOnly() bool
type Unscrutiny ¶
type Unscrutiny struct {
// contains filtered or unexported fields
}
func NewUnscrutiny ¶
func NewUnscrutiny(s sender, sr scrutinyRemover) *Unscrutiny
func (Unscrutiny) Execute ¶
func (u Unscrutiny) Execute(msg *tgbotapi.Message)
func (Unscrutiny) Help ¶
func (Unscrutiny) Help() string
func (Unscrutiny) Hidden ¶
func (Unscrutiny) Hidden() bool
func (Unscrutiny) Name ¶
func (Unscrutiny) Name() string
func (Unscrutiny) SuperAdminOnly ¶
func (Unscrutiny) SuperAdminOnly() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.