Documentation ¶
Index ¶
- Constants
- func Account(user string, bot_janitor bool) string
- func SettingsMessage(subcommand string, settings *storage.UserSettings, user string, ...) data.SendData
- type ManageState
- type SettingsState
- func (this *SettingsState) Handle(ctx *gogram.MessageCtx)
- func (this *SettingsState) HandleCallback(ctx *gogram.CallbackCtx)
- func (this *SettingsState) HandleCallbackTx(tx storage.DBLike, ctx *gogram.CallbackCtx) error
- func (this *SettingsState) HandleTx(tx storage.DBLike, ctx *gogram.MessageCtx) error
- type StartState
Constants ¶
View Source
const BLACKLIST = "blacklist"
View Source
const RATING = "rating"
View Source
const SETTINGS = "/settings"
View Source
const VERIFY = "verify"
View Source
const VERIFYDONE = "doneverifying"
View Source
const VERIFYFAIL = "failverifying"
Variables ¶
This section is empty.
Functions ¶
func SettingsMessage ¶
Types ¶
type ManageState ¶
type ManageState struct { gogram.StateBase Behavior *botbehavior.Behavior }
func (*ManageState) Handle ¶
func (this *ManageState) Handle(ctx *gogram.MessageCtx)
this command is one expected by telegram for the following functions: a user's first message ever to a bot a user pushing the switch-to-pm button in an inline query handle it by modifying the command and redispatching.
type SettingsState ¶
func (*SettingsState) Handle ¶
func (this *SettingsState) Handle(ctx *gogram.MessageCtx)
func (*SettingsState) HandleCallback ¶
func (this *SettingsState) HandleCallback(ctx *gogram.CallbackCtx)
func (*SettingsState) HandleCallbackTx ¶
func (this *SettingsState) HandleCallbackTx(tx storage.DBLike, ctx *gogram.CallbackCtx) error
func (*SettingsState) HandleTx ¶
func (this *SettingsState) HandleTx(tx storage.DBLike, ctx *gogram.MessageCtx) error
type StartState ¶
func (*StartState) Handle ¶
func (this *StartState) Handle(ctx *gogram.MessageCtx)
this command is one expected by telegram for the following functions: a user's first message ever to a bot a user pushing the switch-to-pm button in an inline query handle it by modifying the command and redispatching.
Click to show internal directories.
Click to hide internal directories.