Documentation ¶
Index ¶
- type Button
- type Router
- func (r *Router) RunDefault(ctx *context.Context)
- func (r *Router) SetChannel(fx func(*tgbotapi.BotAPI, *tgbotapi.Message, *context.Context))
- func (r *Router) SetGroup(fx func(*tgbotapi.BotAPI, *tgbotapi.Message, *context.Context))
- func (r *Router) SetPrivate(fx func(*tgbotapi.BotAPI, *tgbotapi.Message, *context.Context))
- func (r *Router) SetSupergroup(fx func(*tgbotapi.BotAPI, *tgbotapi.Message, *context.Context))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { Bot *tgbotapi.BotAPI Button *buttonRouter //频道消息 // contains filtered or unexported fields }
func (*Router) RunDefault ¶
RunDefault 开始运行机器人,执行路由分发
func (*Router) SetChannel ¶
SetChannel 设置频道消息响应函数
func (*Router) SetPrivate ¶
SetPrivate 设置私信消息,响应函数
Click to show internal directories.
Click to hide internal directories.