Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMessages ¶
func InitMessages(maxAliasLen, maxPackageNameLen int, reservedSymbols string, messageHandlers []base.MessageHandler)
func SendHelpMessage ¶
Types ¶
type CallbackHandler ¶
type CallbackHandler struct {
// contains filtered or unexported fields
}
func NewCallbackHandler ¶ added in v0.4.1
func NewCallbackHandler(appenv *base.ApplicationEnv) *CallbackHandler
func (*CallbackHandler) GetCallbackPrefix ¶
func (*CallbackHandler) GetCallbackPrefix() string
func (*CallbackHandler) Handle ¶
func (handler *CallbackHandler) Handle(reqenv *base.RequestEnv, query *tgbotapi.CallbackQuery)
type CommandHandler ¶
type CommandHandler struct { base.CommandHandlerTrait common.GroupCommandTrait // contains filtered or unexported fields }
func NewCommandHandler ¶ added in v0.4.1
func NewCommandHandler(appenv *base.ApplicationEnv) *CommandHandler
func (*CommandHandler) GetCommands ¶ added in v0.4.2
func (*CommandHandler) GetCommands() []string
func (*CommandHandler) GetScopes ¶ added in v1.2.0
func (*CommandHandler) GetScopes() []base.CommandScope
func (*CommandHandler) Handle ¶
func (handler *CommandHandler) Handle(reqenv *base.RequestEnv, msg *tgbotapi.Message)
Click to show internal directories.
Click to hide internal directories.