Documentation ¶
Index ¶
- Constants
- type AliasVisibilityHandler
- func (*AliasVisibilityHandler) GetCommands() []string
- func (*AliasVisibilityHandler) GetScopes() []base.CommandScope
- func (handler *AliasVisibilityHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *AliasVisibilityHandler) GetWizardEnv() *wizard.Env
- func (handler *AliasVisibilityHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type CancelHandler
- type DeleteHandler
- func (*DeleteHandler) GetCommands() []string
- func (*DeleteHandler) GetScopes() []base.CommandScope
- func (handler *DeleteHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *DeleteHandler) GetWizardEnv() *wizard.Env
- func (handler *DeleteHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type GetFavoritesInlineHandler
- type IgnoreUnknownInGroupsHandler
- type InstallPackageHandler
- func (*InstallPackageHandler) GetCommands() []string
- func (*InstallPackageHandler) GetScopes() []base.CommandScope
- func (handler *InstallPackageHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *InstallPackageHandler) GetWizardEnv() *wizard.Env
- func (handler *InstallPackageHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type LanguageHandler
- func (*LanguageHandler) GetCommands() []string
- func (*LanguageHandler) GetScopes() []base.CommandScope
- func (handler *LanguageHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *LanguageHandler) GetWizardEnv() *wizard.Env
- func (handler *LanguageHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type LinkHandler
- func (*LinkHandler) GetCommands() []string
- func (*LinkHandler) GetScopes() []base.CommandScope
- func (handler *LinkHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *LinkHandler) GetWizardEnv() *wizard.Env
- func (handler *LinkHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type ListHandler
- func (*ListHandler) GetCommands() []string
- func (*ListHandler) GetScopes() []base.CommandScope
- func (handler *ListHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *ListHandler) GetWizardEnv() *wizard.Env
- func (handler *ListHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type ListPaginationCallbackHandler
- type PackageHandler
- func (*PackageHandler) GetCommands() []string
- func (*PackageHandler) GetScopes() []base.CommandScope
- func (handler *PackageHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *PackageHandler) GetWizardEnv() *wizard.Env
- func (handler *PackageHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type RefHandler
- func (*RefHandler) GetCommands() []string
- func (*RefHandler) GetScopes() []base.CommandScope
- func (handler *RefHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *RefHandler) GetWizardEnv() *wizard.Env
- func (handler *RefHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type RemoveLinkHandler
- func (*RemoveLinkHandler) GetCommands() []string
- func (*RemoveLinkHandler) GetScopes() []base.CommandScope
- func (handler *RemoveLinkHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *RemoveLinkHandler) GetWizardEnv() *wizard.Env
- func (handler *RemoveLinkHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type SaveHandler
- func (*SaveHandler) GetCommands() []string
- func (*SaveHandler) GetScopes() []base.CommandScope
- func (handler *SaveHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *SaveHandler) GetWizardEnv() *wizard.Env
- func (handler *SaveHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type SearchModeHandler
- func (*SearchModeHandler) GetCommands() []string
- func (*SearchModeHandler) GetScopes() []base.CommandScope
- func (handler *SearchModeHandler) GetWizardDescriptor() *wizard.FormDescriptor
- func (handler *SearchModeHandler) GetWizardEnv() *wizard.Env
- func (handler *SearchModeHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
- type StartEmbeddedHandlers
- type StartHandler
Constants ¶
View Source
const ( FieldAlias = common.FieldAlias FieldObject = common.FieldObject FieldDeleteAll = "deleteAll" FieldLanguage = "language" StatusSuccess = "success" StatusFailure = "failure" StatusNoRows = "no.rows" StatusDuplicate = "duplicate" FieldValidationErrorTrInfix = ".validation.error." FieldMaxLengthErrorTrSuffix = FieldValidationErrorTrInfix + "length" )
View Source
const ( DeleteFieldsTrPrefix = "commands.delete.fields." DeleteStatusTrPrefix = "commands.delete.status." DeleteStatusSuccess = DeleteStatusTrPrefix + StatusSuccess DeleteStatusFailure = DeleteStatusTrPrefix + StatusFailure DeleteStatusNoRows = DeleteStatusTrPrefix + StatusNoRows Yes = "👍" No = "👎" SelectObjectBtnTr = "commands.delete.button.select.object" )
View Source
const ( ErrorTitleTr = "error" UnknownTypeTr = "inline.errors.type.invalid" EmptyQueryTr = "inline.empty.query" EmptyResultTr = "inline.empty.result" DeepLinkSavePrefix = "save-" DeepLinkStartParam = DeepLinkSavePrefix + "_" DeepLinkMaxAliasBytes = 42 // 64 allowed bytes = 5 bytes of prefix + base64(21 general UTF-8 characters (2 bytes per each)), where 3 bytes are transformed into 4 bytes, + 3 spare bytes )
View Source
const ( InstallFieldsTrPrefix = "commands.install.fields." InstallStatusTrPrefix = "commands.install.status." InstallStatusSuccess = InstallStatusTrPrefix + StatusSuccess InstallStatusSuccessNoNames = InstallStatusTrPrefix + StatusSuccess + ".no.names" InstallStatusFailure = InstallStatusTrPrefix + StatusFailure InstallStatusNoRows = InstallStatusTrPrefix + StatusNoRows InstallStatusLinkToExisingFav = InstallStatusTrPrefix + "link.existing.fav" PackageItems = "commands.install.message.package.favs" FieldConfirmation = "confirmation" )
View Source
const ( LangParamPrompt = "commands.language.fields.language" LanguageStatusFailure = "commands.language.status.failure" EnCode = "en" EnFlag = "🇺🇸" RuCode = "ru" RuFlag = "🇷🇺" )
View Source
const ( LinkFieldTrPrefix = "commands.link.fields." LinkStatusTrPrefix = "commands.link.status." LinkStatusSuccess = LinkStatusTrPrefix + StatusSuccess LinkStatusFailure = LinkStatusTrPrefix + StatusFailure LinkStatusDuplicate = LinkStatusTrPrefix + StatusDuplicate LinkStatusDuplicateFav = LinkStatusTrPrefix + StatusDuplicate + ".fav" LinkStatusNoAlias = LinkStatusTrPrefix + "no.alias" LinkStatusErrorForbiddenSymbolsInName = LinkFieldTrPrefix + FieldName + FieldValidationErrorTrInfix + "forbidden.symbols" )
View Source
const ( ListStatusTrPrefix = "commands.list.status." ListStatusSuccessFavs = ListStatusTrPrefix + StatusSuccess + ".favs" ListStatusSuccessPackages = ListStatusTrPrefix + StatusSuccess + ".packages" ListStatusFailure = ListStatusTrPrefix + StatusFailure ListStatusNoRowsFavs = ListStatusTrPrefix + StatusNoRows + ".favs" ListStatusNoRowsPackages = ListStatusTrPrefix + StatusNoRows + ".packages" ListFieldAliasesOrPackagesPromptTr = "commands.list.fields.favs.or.packages" FieldFavsOrPackages = "favsOrPackages" FieldGrep = "grep" Favs = "Favs" Packages = "Packages" LinePrefix = "• " )
View Source
const ( ModeFieldsTrPrefix = "commands.mode.fields." ModeStatusTrPrefix = "commands.mode.status." ModeStatusSuccess = ModeStatusTrPrefix + StatusSuccess ModeStatusFailure = ModeStatusTrPrefix + StatusFailure ModeMessageCurrentVal = "commands.mode.message.current.value" Enabled = "✅" Disabled = "🚫" FieldSubstrSearchEnabled = "substringSearchEnabled" )
View Source
const ( PackageFieldsTrPrefix = "commands.package.fields." PackageStatusTrPrefix = "commands.package.status." PackageStatusCreationSuccess = PackageStatusTrPrefix + StatusSuccess + ".creation" PackageStatusDeletionSuccess = PackageStatusTrPrefix + StatusSuccess + ".deletion" PackageStatusFailure = PackageStatusTrPrefix + StatusFailure PackageStatusDuplicate = PackageStatusTrPrefix + StatusDuplicate PackageStatusNoRows = PackageStatusTrPrefix + StatusNoRows PackageStatusErrorForbiddenSymbolsInName = PackageFieldsTrPrefix + FieldName + FieldValidationErrorTrInfix + "forbidden.symbols" FieldCreateOrDelete = "createOrDelete" FieldName = "name" FieldAliases = FieldAlias + "es" Create = "Create" Recreate = "Recreate" Delete = "Delete" MaxPackageNameLen = 256 )
View Source
const ( RefStatusTrPrefix = "commands.ref.status." RefStatusSuccess = RefStatusTrPrefix + StatusSuccess RefStatusSuccessWithPackages = RefStatusTrPrefix + StatusSuccess + ".with.packages" RefStatusSuccessPackagesByAlias = RefStatusTrPrefix + StatusSuccess + ".packages.by.alias" RefStatusFailure = RefStatusTrPrefix + StatusFailure RefStatusNoFavs = RefStatusTrPrefix + "no.favs" RefStatusNoPacks = RefStatusTrPrefix + "no.packages" RefFieldAliasesOrPackagesPromptTr = "commands.ref.fields.object" )
View Source
const ( RmLinkFieldTrPrefix = "commands.rmlink.fields." RmLinkStatusTrPrefix = "commands.rmlink.status." RmLinkStatusSuccess = RmLinkStatusTrPrefix + StatusSuccess RmLinkStatusFailure = RmLinkStatusTrPrefix + StatusFailure RmLinkStatusNoRows = RmLinkStatusTrPrefix + StatusNoRows )
View Source
const ( SaveFieldsTrPrefix = "commands.save.fields." SaveStatusTrPrefix = "commands.save.status." SaveStatusSuccess = SaveStatusTrPrefix + StatusSuccess SaveStatusFailure = SaveStatusTrPrefix + StatusFailure SaveStatusDuplicate = SaveStatusTrPrefix + StatusDuplicate SaveStatusErrorForbiddenSymbolsInAlias = SaveFieldsTrPrefix + FieldAlias + FieldValidationErrorTrInfix + "forbidden.symbols" SaveObjectValidationErrorCustomEmoji = SaveFieldsTrPrefix + FieldObject + FieldValidationErrorTrInfix + "custom.emoji" MaxAliasLen = 128 MaxTextLen = 4096 ReservedSymbols = ReservedSymbolsForMessage + "\n" ReservedSymbolsForMessage = "•@|{}[]:" )
View Source
const ( StartStatusFailure = "commands.start.status." + StatusFailure FieldInstallingPackage = "installingPackage" )
View Source
const ( AliasVisibilityFieldTrPrefix = "commands.visibility.fields." FieldChange = "change" AliasVisibilityStatusTrPrefix = "commands.visibility.status." AliasVisibilityStatusFailure = AliasVisibilityStatusTrPrefix + StatusFailure AliasVisibilityStatusNoRows = AliasVisibilityStatusTrPrefix + "no.rows" ExcludeAction = "exclude" RevealAction = "reveal" )
View Source
const SuccessTr = "success"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasVisibilityHandler ¶ added in v1.0.6
type AliasVisibilityHandler struct { base.CommandHandlerTrait // contains filtered or unexported fields }
func NewAliasVisibilityHandler ¶ added in v1.0.6
func NewAliasVisibilityHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *AliasVisibilityHandler
func (*AliasVisibilityHandler) GetCommands ¶ added in v1.0.6
func (*AliasVisibilityHandler) GetCommands() []string
func (*AliasVisibilityHandler) GetScopes ¶ added in v1.2.0
func (*AliasVisibilityHandler) GetScopes() []base.CommandScope
func (*AliasVisibilityHandler) GetWizardDescriptor ¶ added in v1.0.6
func (handler *AliasVisibilityHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*AliasVisibilityHandler) GetWizardEnv ¶ added in v1.0.6
func (handler *AliasVisibilityHandler) GetWizardEnv() *wizard.Env
func (*AliasVisibilityHandler) Handle ¶ added in v1.0.6
func (handler *AliasVisibilityHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type CancelHandler ¶
type CancelHandler struct { base.CommandHandlerTrait // contains filtered or unexported fields }
func NewCancelHandler ¶ added in v0.4.1
func NewCancelHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *CancelHandler
func (*CancelHandler) GetCommands ¶ added in v0.4.2
func (*CancelHandler) GetCommands() []string
func (*CancelHandler) GetScopes ¶ added in v1.2.0
func (*CancelHandler) GetScopes() []base.CommandScope
func (*CancelHandler) Handle ¶
func (c *CancelHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type DeleteHandler ¶
type DeleteHandler struct { base.CommandHandlerTrait common.GroupCommandTrait // contains filtered or unexported fields }
func NewDeleteHandler ¶ added in v0.4.1
func NewDeleteHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *DeleteHandler
func (*DeleteHandler) GetCommands ¶ added in v0.4.2
func (*DeleteHandler) GetCommands() []string
func (*DeleteHandler) GetScopes ¶ added in v1.2.0
func (*DeleteHandler) GetScopes() []base.CommandScope
func (*DeleteHandler) GetWizardDescriptor ¶
func (handler *DeleteHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*DeleteHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *DeleteHandler) GetWizardEnv() *wizard.Env
func (*DeleteHandler) Handle ¶
func (handler *DeleteHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type GetFavoritesInlineHandler ¶
type GetFavoritesInlineHandler struct {
// contains filtered or unexported fields
}
func NewGetFavoritesInlineHandler ¶ added in v0.4.1
func NewGetFavoritesInlineHandler(appenv *base.ApplicationEnv) *GetFavoritesInlineHandler
func (*GetFavoritesInlineHandler) CanHandle ¶
func (*GetFavoritesInlineHandler) CanHandle(*base.RequestEnv, *tgbotapi.InlineQuery) bool
func (*GetFavoritesInlineHandler) Handle ¶
func (handler *GetFavoritesInlineHandler) Handle(reqenv *base.RequestEnv, query *tgbotapi.InlineQuery)
type IgnoreUnknownInGroupsHandler ¶ added in v1.2.1
type IgnoreUnknownInGroupsHandler struct{}
func NewIgnoreUnknownInGroupsHandler ¶ added in v1.2.1
func NewIgnoreUnknownInGroupsHandler() *IgnoreUnknownInGroupsHandler
func (*IgnoreUnknownInGroupsHandler) CanHandle ¶ added in v1.2.1
func (*IgnoreUnknownInGroupsHandler) CanHandle(_ *base.RequestEnv, msg *tgbotapi.Message) bool
func (*IgnoreUnknownInGroupsHandler) Handle ¶ added in v1.2.1
func (handler *IgnoreUnknownInGroupsHandler) Handle(_ *base.RequestEnv, _ *tgbotapi.Message)
type InstallPackageHandler ¶ added in v0.3.0
type InstallPackageHandler struct { base.CommandHandlerTrait // contains filtered or unexported fields }
func NewInstallPackageHandler ¶ added in v0.4.1
func NewInstallPackageHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *InstallPackageHandler
func (*InstallPackageHandler) GetCommands ¶ added in v0.4.2
func (*InstallPackageHandler) GetCommands() []string
func (*InstallPackageHandler) GetScopes ¶ added in v1.2.0
func (*InstallPackageHandler) GetScopes() []base.CommandScope
func (*InstallPackageHandler) GetWizardDescriptor ¶ added in v0.3.0
func (handler *InstallPackageHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*InstallPackageHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *InstallPackageHandler) GetWizardEnv() *wizard.Env
func (*InstallPackageHandler) Handle ¶ added in v0.3.0
func (handler *InstallPackageHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type LanguageHandler ¶
type LanguageHandler struct { base.CommandHandlerTrait // contains filtered or unexported fields }
func NewLanguageHandler ¶ added in v0.4.1
func NewLanguageHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *LanguageHandler
func (*LanguageHandler) GetCommands ¶ added in v0.4.2
func (*LanguageHandler) GetCommands() []string
func (*LanguageHandler) GetScopes ¶ added in v1.2.0
func (*LanguageHandler) GetScopes() []base.CommandScope
func (*LanguageHandler) GetWizardDescriptor ¶
func (handler *LanguageHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*LanguageHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *LanguageHandler) GetWizardEnv() *wizard.Env
func (*LanguageHandler) Handle ¶
func (handler *LanguageHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type LinkHandler ¶ added in v0.3.2
type LinkHandler struct { base.CommandHandlerTrait common.GroupCommandTrait // contains filtered or unexported fields }
func NewLinkHandler ¶ added in v0.4.1
func NewLinkHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *LinkHandler
func (*LinkHandler) GetCommands ¶ added in v0.4.2
func (*LinkHandler) GetCommands() []string
func (*LinkHandler) GetScopes ¶ added in v1.2.0
func (*LinkHandler) GetScopes() []base.CommandScope
func (*LinkHandler) GetWizardDescriptor ¶ added in v0.3.2
func (handler *LinkHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*LinkHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *LinkHandler) GetWizardEnv() *wizard.Env
func (*LinkHandler) Handle ¶ added in v0.3.2
func (handler *LinkHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type ListHandler ¶ added in v0.2.0
type ListHandler struct { base.CommandHandlerTrait common.GroupCommandTrait // contains filtered or unexported fields }
func NewListHandler ¶ added in v0.4.1
func NewListHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *ListHandler
func (*ListHandler) GetCommands ¶ added in v0.4.2
func (*ListHandler) GetCommands() []string
func (*ListHandler) GetScopes ¶ added in v1.2.0
func (*ListHandler) GetScopes() []base.CommandScope
func (*ListHandler) GetWizardDescriptor ¶ added in v0.3.0
func (handler *ListHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*ListHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *ListHandler) GetWizardEnv() *wizard.Env
func (*ListHandler) Handle ¶ added in v0.2.0
func (handler *ListHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type ListPaginationCallbackHandler ¶ added in v1.1.1
type ListPaginationCallbackHandler struct {
// contains filtered or unexported fields
}
func NewListPaginationCallbackHandler ¶ added in v1.1.1
func NewListPaginationCallbackHandler(appenv *base.ApplicationEnv) *ListPaginationCallbackHandler
func (*ListPaginationCallbackHandler) GetCallbackPrefix ¶ added in v1.1.1
func (handler *ListPaginationCallbackHandler) GetCallbackPrefix() string
func (*ListPaginationCallbackHandler) Handle ¶ added in v1.1.1
func (handler *ListPaginationCallbackHandler) Handle(reqenv *base.RequestEnv, query *tgbotapi.CallbackQuery)
type PackageHandler ¶ added in v0.3.0
type PackageHandler struct { base.CommandHandlerTrait // contains filtered or unexported fields }
func NewPackageHandler ¶ added in v0.4.1
func NewPackageHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *PackageHandler
func (*PackageHandler) GetCommands ¶ added in v0.4.2
func (*PackageHandler) GetCommands() []string
func (*PackageHandler) GetScopes ¶ added in v1.2.0
func (*PackageHandler) GetScopes() []base.CommandScope
func (*PackageHandler) GetWizardDescriptor ¶ added in v0.3.0
func (handler *PackageHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*PackageHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *PackageHandler) GetWizardEnv() *wizard.Env
func (*PackageHandler) Handle ¶ added in v0.3.0
func (handler *PackageHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type RefHandler ¶ added in v1.1.0
type RefHandler struct { base.CommandHandlerTrait common.GroupCommandTrait // contains filtered or unexported fields }
func NewRefHandler ¶ added in v1.1.0
func NewRefHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *RefHandler
func (*RefHandler) GetCommands ¶ added in v1.1.0
func (*RefHandler) GetCommands() []string
func (*RefHandler) GetScopes ¶ added in v1.2.0
func (*RefHandler) GetScopes() []base.CommandScope
func (*RefHandler) GetWizardDescriptor ¶ added in v1.1.0
func (handler *RefHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*RefHandler) GetWizardEnv ¶ added in v1.1.0
func (handler *RefHandler) GetWizardEnv() *wizard.Env
func (*RefHandler) Handle ¶ added in v1.1.0
func (handler *RefHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type RemoveLinkHandler ¶ added in v1.1.5
type RemoveLinkHandler struct { base.CommandHandlerTrait common.GroupCommandTrait // contains filtered or unexported fields }
func NewRemoveLinkHandler ¶ added in v1.1.5
func NewRemoveLinkHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *RemoveLinkHandler
func (*RemoveLinkHandler) GetCommands ¶ added in v1.1.5
func (*RemoveLinkHandler) GetCommands() []string
func (*RemoveLinkHandler) GetScopes ¶ added in v1.2.0
func (*RemoveLinkHandler) GetScopes() []base.CommandScope
func (*RemoveLinkHandler) GetWizardDescriptor ¶ added in v1.1.5
func (handler *RemoveLinkHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*RemoveLinkHandler) GetWizardEnv ¶ added in v1.1.5
func (handler *RemoveLinkHandler) GetWizardEnv() *wizard.Env
func (*RemoveLinkHandler) Handle ¶ added in v1.1.5
func (handler *RemoveLinkHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type SaveHandler ¶
type SaveHandler struct { base.CommandHandlerTrait common.GroupCommandTrait // contains filtered or unexported fields }
func NewSaveHandler ¶ added in v0.4.1
func NewSaveHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *SaveHandler
func (*SaveHandler) GetCommands ¶ added in v0.4.2
func (*SaveHandler) GetCommands() []string
func (*SaveHandler) GetScopes ¶ added in v1.2.0
func (*SaveHandler) GetScopes() []base.CommandScope
func (*SaveHandler) GetWizardDescriptor ¶
func (handler *SaveHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*SaveHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *SaveHandler) GetWizardEnv() *wizard.Env
func (*SaveHandler) Handle ¶
func (handler *SaveHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type SearchModeHandler ¶ added in v0.3.3
type SearchModeHandler struct { base.CommandHandlerTrait // contains filtered or unexported fields }
func NewSearchModeHandler ¶ added in v0.4.1
func NewSearchModeHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage) *SearchModeHandler
func (*SearchModeHandler) GetCommands ¶ added in v0.4.2
func (*SearchModeHandler) GetCommands() []string
func (*SearchModeHandler) GetScopes ¶ added in v1.2.0
func (*SearchModeHandler) GetScopes() []base.CommandScope
func (*SearchModeHandler) GetWizardDescriptor ¶ added in v0.3.3
func (handler *SearchModeHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*SearchModeHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *SearchModeHandler) GetWizardEnv() *wizard.Env
func (*SearchModeHandler) Handle ¶ added in v0.3.3
func (handler *SearchModeHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
type StartEmbeddedHandlers ¶ added in v0.4.1
type StartEmbeddedHandlers struct { Language *LanguageHandler InstallPackage *InstallPackageHandler Save *SaveHandler }
type StartHandler ¶
type StartHandler struct {
// contains filtered or unexported fields
}
func NewStartHandler ¶ added in v0.4.1
func NewStartHandler(appenv *base.ApplicationEnv, stateStorage wizard.StateStorage, embeddedHandlers StartEmbeddedHandlers) *StartHandler
func (*StartHandler) CanHandle ¶
func (*StartHandler) CanHandle(_ *base.RequestEnv, msg *tgbotapi.Message) bool
func (*StartHandler) GetWizardDescriptor ¶
func (handler *StartHandler) GetWizardDescriptor() *wizard.FormDescriptor
func (*StartHandler) GetWizardEnv ¶ added in v0.4.1
func (handler *StartHandler) GetWizardEnv() *wizard.Env
func (*StartHandler) Handle ¶
func (handler *StartHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.