Documentation ¶
Index ¶
- func EditStateFactory(jstr []byte, sbp persist.StateBasePersistent) gogram.State
- func EditStateFactoryWithData(jstr []byte, sbp persist.StateBasePersistent, data esp) gogram.State
- func PostStateFactory(jstr []byte, sbp persist.StateBasePersistent) gogram.State
- func PostStateFactoryWithData(jstr []byte, sbp persist.StateBasePersistent, data psp) gogram.State
- func ShowHelp(topic string) string
- type AutofixState
- func (this *AutofixState) DoMaintenance(bot *gogram.TelegramBot)
- func (this *AutofixState) GetInterval() int64
- func (this *AutofixState) Handle(ctx *gogram.MessageCtx)
- func (this *AutofixState) HandleCallback(ctx *gogram.CallbackCtx)
- func (this *AutofixState) HandleCallbackTx(tx storage.DBLike, ctx *gogram.CallbackCtx) error
- type EditState
- func (this *EditState) Cancel(ctx *gogram.MessageCtx)
- func (this *EditState) Edit(ctx *gogram.MessageCtx)
- func (this *EditState) Freeform(ctx *gogram.MessageCtx)
- func (this *EditState) Handle(ctx *gogram.MessageCtx)
- func (this *EditState) HandleCallback(ctx *gogram.CallbackCtx)
- func (this *EditState) HandleCallbackTx(tx storage.DBLike, ctx *gogram.CallbackCtx) error
- type HelpState
- type JanitorState
- type LoginState
- type OperatorState
- type PostFile
- type PostState
- func (this *PostState) Cancel(ctx *gogram.MessageCtx)
- func (this *PostState) Freeform(ctx *gogram.MessageCtx)
- func (this *PostState) Handle(ctx *gogram.MessageCtx)
- func (this *PostState) HandleCallback(ctx *gogram.CallbackCtx)
- func (this *PostState) HandleCallbackTx(tx storage.DBLike, ctx *gogram.CallbackCtx) error
- func (this *PostState) Post(ctx *gogram.MessageCtx)
- func (this *PostState) WriteUserTagRules(tx storage.DBLike, my_id data.UserID, tagrules, name string) error
- type TagRuleState
- type VoteState
- func (this *VoteState) DoMaintenance(bot *gogram.TelegramBot)
- func (this *VoteState) GetInterval() int64
- func (this *VoteState) Handle(ctx *gogram.MessageCtx)
- func (this *VoteState) HandleCallback(ctx *gogram.CallbackCtx)
- func (this *VoteState) HandleCmd(from *data.TUser, cmd *gogram.CommandData, reply_message *data.TMessage, ...) (data.OMessage, bool)
- func (this *VoteState) MarkAndTestRecentlyFaved(tg_user data.UserID, post_id int) bool
- func (this *VoteState) MarkAndTestRecentlyVoted(tg_user data.UserID, vote apitypes.PostVote, post_id int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditStateFactory ¶
func EditStateFactory(jstr []byte, sbp persist.StateBasePersistent) gogram.State
func EditStateFactoryWithData ¶
func EditStateFactoryWithData(jstr []byte, sbp persist.StateBasePersistent, data esp) gogram.State
func PostStateFactory ¶
func PostStateFactory(jstr []byte, sbp persist.StateBasePersistent) gogram.State
func PostStateFactoryWithData ¶
func PostStateFactoryWithData(jstr []byte, sbp persist.StateBasePersistent, data psp) gogram.State
Types ¶
type AutofixState ¶
type AutofixState struct { gogram.StateBase Behavior *botbehavior.Behavior }
func (*AutofixState) DoMaintenance ¶
func (this *AutofixState) DoMaintenance(bot *gogram.TelegramBot)
func (*AutofixState) GetInterval ¶
func (this *AutofixState) GetInterval() int64
func (*AutofixState) Handle ¶
func (this *AutofixState) Handle(ctx *gogram.MessageCtx)
func (*AutofixState) HandleCallback ¶
func (this *AutofixState) HandleCallback(ctx *gogram.CallbackCtx)
func (*AutofixState) HandleCallbackTx ¶
func (this *AutofixState) HandleCallbackTx(tx storage.DBLike, ctx *gogram.CallbackCtx) error
type EditState ¶
type EditState struct { persist.StateBasePersistent // contains filtered or unexported fields }
func (*EditState) Cancel ¶
func (this *EditState) Cancel(ctx *gogram.MessageCtx)
func (*EditState) Edit ¶
func (this *EditState) Edit(ctx *gogram.MessageCtx)
func (*EditState) Freeform ¶
func (this *EditState) Freeform(ctx *gogram.MessageCtx)
func (*EditState) Handle ¶
func (this *EditState) Handle(ctx *gogram.MessageCtx)
func (*EditState) HandleCallback ¶
func (this *EditState) HandleCallback(ctx *gogram.CallbackCtx)
func (*EditState) HandleCallbackTx ¶
type JanitorState ¶
func (*JanitorState) Handle ¶
func (this *JanitorState) Handle(ctx *gogram.MessageCtx)
type LoginState ¶
func (*LoginState) Handle ¶
func (this *LoginState) Handle(ctx *gogram.MessageCtx)
func (*LoginState) HandleTx ¶
func (this *LoginState) HandleTx(tx storage.DBLike, ctx *gogram.MessageCtx) error
type OperatorState ¶
type OperatorState struct { gogram.StateBase Behavior *botbehavior.Behavior }
func (*OperatorState) Handle ¶
func (this *OperatorState) Handle(ctx *gogram.MessageCtx)
type PostState ¶
type PostState struct { persist.StateBasePersistent // contains filtered or unexported fields }
func (*PostState) Cancel ¶
func (this *PostState) Cancel(ctx *gogram.MessageCtx)
func (*PostState) Freeform ¶
func (this *PostState) Freeform(ctx *gogram.MessageCtx)
func (*PostState) Handle ¶
func (this *PostState) Handle(ctx *gogram.MessageCtx)
func (*PostState) HandleCallback ¶
func (this *PostState) HandleCallback(ctx *gogram.CallbackCtx)
func (*PostState) HandleCallbackTx ¶
func (*PostState) Post ¶
func (this *PostState) Post(ctx *gogram.MessageCtx)
type TagRuleState ¶
func (*TagRuleState) Handle ¶
func (this *TagRuleState) Handle(ctx *gogram.MessageCtx)
func (*TagRuleState) HandleTx ¶
func (this *TagRuleState) HandleTx(tx storage.DBLike, ctx *gogram.MessageCtx) error
type VoteState ¶
func (*VoteState) DoMaintenance ¶
func (this *VoteState) DoMaintenance(bot *gogram.TelegramBot)
func (*VoteState) GetInterval ¶
func (*VoteState) Handle ¶
func (this *VoteState) Handle(ctx *gogram.MessageCtx)
func (*VoteState) HandleCallback ¶
func (this *VoteState) HandleCallback(ctx *gogram.CallbackCtx)
func (*VoteState) MarkAndTestRecentlyFaved ¶
Click to show internal directories.
Click to hide internal directories.