Documentation ¶
Index ¶
- Constants
- type ActiveAll
- type AddSubscription
- type ButtonHandler
- type CancelRemoveAllSubscriptionButton
- type CommandHandler
- type Export
- type Help
- type Import
- type ListSubscription
- type NotificationSwitchButton
- type OnDocument
- type PauseAll
- type Ping
- type RemoveAllSubscription
- type RemoveAllSubscriptionButton
- type RemoveSubscription
- type RemoveSubscriptionItemButton
- type Set
- type SetFeedItemButton
- type SetFeedTag
- type SetSubscriptionTagButton
- type SetUpdateInterval
- type Start
- type SubscriptionSwitchButton
- type TelegraphSwitchButton
- type Version
Constants ¶
View Source
const ( UnSubAllButtonUnique = "unsub_all_confirm_btn" CancelUnSubAllButtonUnique = "unsub_all_cancel_btn" )
View Source
const (
MaxSubsSizePerPage = 50
)
View Source
const (
NotificationSwitchButtonUnique = "set_toggle_notice_btn"
)
View Source
const (
RemoveSubscriptionItemButtonUnique = "unsub_feed_item_btn"
)
View Source
const (
SetFeedItemButtonUnique = "set_feed_item_btn"
)
View Source
const (
SetSubscriptionTagButtonUnique = "set_set_sub_tag_btn"
)
View Source
const (
SubscriptionSwitchButtonUnique = "set_toggle_update_btn"
)
View Source
const (
TelegraphSwitchButtonUnique = "set_toggle_telegraph_btn"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveAll ¶
type ActiveAll struct {
// contains filtered or unexported fields
}
func NewActiveAll ¶
func (*ActiveAll) Description ¶
func (*ActiveAll) Middlewares ¶
func (a *ActiveAll) Middlewares() []tb.MiddlewareFunc
type AddSubscription ¶
type AddSubscription struct {
// contains filtered or unexported fields
}
func NewAddSubscription ¶
func NewAddSubscription(core *core.Core) *AddSubscription
func (*AddSubscription) Command ¶
func (a *AddSubscription) Command() string
func (*AddSubscription) Description ¶
func (a *AddSubscription) Description() string
func (*AddSubscription) Middlewares ¶
func (a *AddSubscription) Middlewares() []tb.MiddlewareFunc
type ButtonHandler ¶
type ButtonHandler interface { tb.CallbackEndpoint // Description of Command Description() string // Handle function Handle(ctx tb.Context) error // Middlewares Handler middlewares Middlewares() []tb.MiddlewareFunc }
type CancelRemoveAllSubscriptionButton ¶
type CancelRemoveAllSubscriptionButton struct { }
func NewCancelRemoveAllSubscriptionButton ¶
func NewCancelRemoveAllSubscriptionButton() *CancelRemoveAllSubscriptionButton
func (*CancelRemoveAllSubscriptionButton) CallbackUnique ¶
func (r *CancelRemoveAllSubscriptionButton) CallbackUnique() string
func (*CancelRemoveAllSubscriptionButton) Description ¶
func (r *CancelRemoveAllSubscriptionButton) Description() string
func (*CancelRemoveAllSubscriptionButton) Handle ¶
func (r *CancelRemoveAllSubscriptionButton) Handle(ctx tb.Context) error
func (*CancelRemoveAllSubscriptionButton) Middlewares ¶
func (r *CancelRemoveAllSubscriptionButton) Middlewares() []tb.MiddlewareFunc
type CommandHandler ¶
type Export ¶
type Export struct {
// contains filtered or unexported fields
}
func (*Export) Description ¶
func (*Export) Middlewares ¶
func (e *Export) Middlewares() []tb.MiddlewareFunc
type Help ¶
type Help struct { }
func (*Help) Description ¶
func (*Help) Middlewares ¶
func (h *Help) Middlewares() []tb.MiddlewareFunc
type Import ¶
type Import struct { }
func (*Import) Description ¶
func (*Import) Middlewares ¶
func (i *Import) Middlewares() []tb.MiddlewareFunc
type ListSubscription ¶
type ListSubscription struct {
// contains filtered or unexported fields
}
func NewListSubscription ¶
func NewListSubscription(core *core.Core) *ListSubscription
func (*ListSubscription) Command ¶
func (l *ListSubscription) Command() string
func (*ListSubscription) Description ¶
func (l *ListSubscription) Description() string
func (*ListSubscription) Middlewares ¶
func (l *ListSubscription) Middlewares() []tb.MiddlewareFunc
type NotificationSwitchButton ¶
type NotificationSwitchButton struct {
// contains filtered or unexported fields
}
func NewNotificationSwitchButton ¶
func NewNotificationSwitchButton(bot *tb.Bot, core *core.Core) *NotificationSwitchButton
func (*NotificationSwitchButton) CallbackUnique ¶
func (b *NotificationSwitchButton) CallbackUnique() string
func (*NotificationSwitchButton) Description ¶
func (b *NotificationSwitchButton) Description() string
func (*NotificationSwitchButton) Handle ¶
func (b *NotificationSwitchButton) Handle(ctx tb.Context) error
func (*NotificationSwitchButton) Middlewares ¶
func (b *NotificationSwitchButton) Middlewares() []tb.MiddlewareFunc
type OnDocument ¶
type OnDocument struct {
// contains filtered or unexported fields
}
func NewOnDocument ¶
func NewOnDocument(bot *tb.Bot, core *core.Core) *OnDocument
func (*OnDocument) Command ¶
func (o *OnDocument) Command() string
func (*OnDocument) Description ¶
func (o *OnDocument) Description() string
func (*OnDocument) Middlewares ¶
func (o *OnDocument) Middlewares() []tb.MiddlewareFunc
type PauseAll ¶
type PauseAll struct {
// contains filtered or unexported fields
}
func NewPauseAll ¶
func (*PauseAll) Description ¶
func (*PauseAll) Middlewares ¶
func (p *PauseAll) Middlewares() []tb.MiddlewareFunc
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
func (*Ping) Description ¶
func (*Ping) Middlewares ¶
func (p *Ping) Middlewares() []tb.MiddlewareFunc
type RemoveAllSubscription ¶
type RemoveAllSubscription struct { }
func NewRemoveAllSubscription ¶
func NewRemoveAllSubscription() *RemoveAllSubscription
func (RemoveAllSubscription) Command ¶
func (r RemoveAllSubscription) Command() string
func (RemoveAllSubscription) Description ¶
func (r RemoveAllSubscription) Description() string
func (RemoveAllSubscription) Middlewares ¶
func (r RemoveAllSubscription) Middlewares() []tb.MiddlewareFunc
type RemoveAllSubscriptionButton ¶
type RemoveAllSubscriptionButton struct {
// contains filtered or unexported fields
}
func NewRemoveAllSubscriptionButton ¶
func NewRemoveAllSubscriptionButton(core *core.Core) *RemoveAllSubscriptionButton
func (*RemoveAllSubscriptionButton) CallbackUnique ¶
func (r *RemoveAllSubscriptionButton) CallbackUnique() string
func (*RemoveAllSubscriptionButton) Description ¶
func (r *RemoveAllSubscriptionButton) Description() string
func (*RemoveAllSubscriptionButton) Handle ¶
func (r *RemoveAllSubscriptionButton) Handle(ctx tb.Context) error
func (*RemoveAllSubscriptionButton) Middlewares ¶
func (r *RemoveAllSubscriptionButton) Middlewares() []tb.MiddlewareFunc
type RemoveSubscription ¶
type RemoveSubscription struct {
// contains filtered or unexported fields
}
func NewRemoveSubscription ¶
func NewRemoveSubscription(bot *tb.Bot, core *core.Core) *RemoveSubscription
func (*RemoveSubscription) Command ¶
func (s *RemoveSubscription) Command() string
func (*RemoveSubscription) Description ¶
func (s *RemoveSubscription) Description() string
func (*RemoveSubscription) Middlewares ¶
func (s *RemoveSubscription) Middlewares() []tb.MiddlewareFunc
type RemoveSubscriptionItemButton ¶
type RemoveSubscriptionItemButton struct {
// contains filtered or unexported fields
}
func NewRemoveSubscriptionItemButton ¶
func NewRemoveSubscriptionItemButton(core *core.Core) *RemoveSubscriptionItemButton
func (*RemoveSubscriptionItemButton) CallbackUnique ¶
func (r *RemoveSubscriptionItemButton) CallbackUnique() string
func (*RemoveSubscriptionItemButton) Description ¶
func (r *RemoveSubscriptionItemButton) Description() string
func (*RemoveSubscriptionItemButton) Handle ¶
func (r *RemoveSubscriptionItemButton) Handle(ctx tb.Context) error
func (*RemoveSubscriptionItemButton) Middlewares ¶
func (r *RemoveSubscriptionItemButton) Middlewares() []tb.MiddlewareFunc
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) Description ¶
func (*Set) Middlewares ¶
func (s *Set) Middlewares() []tb.MiddlewareFunc
type SetFeedItemButton ¶
type SetFeedItemButton struct {
// contains filtered or unexported fields
}
func NewSetFeedItemButton ¶
func NewSetFeedItemButton(bot *tb.Bot, core *core.Core) *SetFeedItemButton
func (*SetFeedItemButton) CallbackUnique ¶
func (r *SetFeedItemButton) CallbackUnique() string
func (*SetFeedItemButton) Description ¶
func (r *SetFeedItemButton) Description() string
func (*SetFeedItemButton) Middlewares ¶
func (r *SetFeedItemButton) Middlewares() []tb.MiddlewareFunc
type SetFeedTag ¶
type SetFeedTag struct {
// contains filtered or unexported fields
}
func NewSetFeedTag ¶
func NewSetFeedTag(core *core.Core) *SetFeedTag
func (*SetFeedTag) Command ¶
func (s *SetFeedTag) Command() string
func (*SetFeedTag) Description ¶
func (s *SetFeedTag) Description() string
func (*SetFeedTag) Middlewares ¶
func (s *SetFeedTag) Middlewares() []tb.MiddlewareFunc
type SetSubscriptionTagButton ¶
type SetSubscriptionTagButton struct {
// contains filtered or unexported fields
}
func NewSetSubscriptionTagButton ¶
func NewSetSubscriptionTagButton(bot *tb.Bot) *SetSubscriptionTagButton
func (*SetSubscriptionTagButton) CallbackUnique ¶
func (b *SetSubscriptionTagButton) CallbackUnique() string
func (*SetSubscriptionTagButton) Description ¶
func (b *SetSubscriptionTagButton) Description() string
func (*SetSubscriptionTagButton) Handle ¶
func (b *SetSubscriptionTagButton) Handle(ctx tb.Context) error
func (*SetSubscriptionTagButton) Middlewares ¶
func (b *SetSubscriptionTagButton) Middlewares() []tb.MiddlewareFunc
type SetUpdateInterval ¶
type SetUpdateInterval struct {
// contains filtered or unexported fields
}
func NewSetUpdateInterval ¶
func NewSetUpdateInterval(core *core.Core) *SetUpdateInterval
func (*SetUpdateInterval) Command ¶
func (s *SetUpdateInterval) Command() string
func (*SetUpdateInterval) Description ¶
func (s *SetUpdateInterval) Description() string
func (*SetUpdateInterval) Middlewares ¶
func (s *SetUpdateInterval) Middlewares() []tb.MiddlewareFunc
type Start ¶
type Start struct { }
func (*Start) Description ¶
func (*Start) Middlewares ¶
func (s *Start) Middlewares() []tb.MiddlewareFunc
type SubscriptionSwitchButton ¶
type SubscriptionSwitchButton struct {
// contains filtered or unexported fields
}
func NewSubscriptionSwitchButton ¶
func NewSubscriptionSwitchButton(bot *tb.Bot, core *core.Core) *SubscriptionSwitchButton
func (*SubscriptionSwitchButton) CallbackUnique ¶
func (b *SubscriptionSwitchButton) CallbackUnique() string
func (*SubscriptionSwitchButton) Description ¶
func (b *SubscriptionSwitchButton) Description() string
func (*SubscriptionSwitchButton) Handle ¶
func (b *SubscriptionSwitchButton) Handle(ctx tb.Context) error
func (*SubscriptionSwitchButton) Middlewares ¶
func (b *SubscriptionSwitchButton) Middlewares() []tb.MiddlewareFunc
type TelegraphSwitchButton ¶
type TelegraphSwitchButton struct {
// contains filtered or unexported fields
}
func NewTelegraphSwitchButton ¶
func NewTelegraphSwitchButton(bot *tb.Bot, core *core.Core) *TelegraphSwitchButton
func (*TelegraphSwitchButton) CallbackUnique ¶
func (b *TelegraphSwitchButton) CallbackUnique() string
func (*TelegraphSwitchButton) Description ¶
func (b *TelegraphSwitchButton) Description() string
func (*TelegraphSwitchButton) Middlewares ¶
func (b *TelegraphSwitchButton) Middlewares() []tb.MiddlewareFunc
type Version ¶
type Version struct { }
func NewVersion ¶
func NewVersion() *Version
func (*Version) Description ¶
func (*Version) Middlewares ¶
func (c *Version) Middlewares() []tb.MiddlewareFunc
Source Files ¶
- active_all.go
- add_subscription.go
- export.go
- handler.go
- help.go
- import.go
- list_subscription.go
- notification_switch_button.go
- on_document.go
- pause_all.go
- ping.go
- remove_all_subscription.go
- remove_subscription.go
- set.go
- set_feed_tag.go
- set_subscription_tag_button.go
- set_update_interval.go
- start.go
- subscription_switch_button.go
- telegraph_switch_button.go
- version.go
Click to show internal directories.
Click to hide internal directories.