cmd

package
v0.0.0-...-b0fc717 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 Account

func Account(user string, bot_janitor bool) string

func SettingsMessage

func SettingsMessage(subcommand string, settings *storage.UserSettings, user string, bot_janitor bool) data.SendData

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

type SettingsState struct {
	gogram.StateBase
}

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

type StartState struct {
	gogram.StateBase
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL