Documentation
¶
Index ¶
- func AddHandler(ctx *ext.Context, update *ext.Update) error
- func AddSubHandler(ctx *ext.Context, update *ext.Update) error
- func CheckPermission(ctx *ext.Context, update *ext.Update) bool
- func CheckPermissionsHandler(ctx *ext.Context, update *ext.Update) error
- func DelHandler(ctx *ext.Context, update *ext.Update) error
- func DelSubHandler(ctx *ext.Context, update *ext.Update) error
- func DownloadHandler(ctx *ext.Context, update *ext.Update) error
- func FilterCallbackHandler(ctx *ext.Context, update *ext.Update) error
- func ListHandler(ctx *ext.Context, update *ext.Update) error
- func ListSubHandler(ctx *ext.Context, update *ext.Update) error
- func PubHandler(ctx *ext.Context, update *ext.Update) error
- func SearchCallbackHandler(ctx *ext.Context, update *ext.Update) error
- func SearchHandler(ctx *ext.Context, update *ext.Update) error
- func SelectCallbackHandler(ctx *ext.Context, update *ext.Update) error
- func StartHandler(ctx *ext.Context, update *ext.Update) error
- func SyncPeersHandler(ctx *ext.Context, update *ext.Update) error
- func UnPubHandler(ctx *ext.Context, update *ext.Update) error
- func UnWatchDelHandler(ctx *ext.Context, update *ext.Update) error
- func UnWatchHandler(ctx *ext.Context, update *ext.Update) error
- func WatchDelHandler(ctx *ext.Context, update *ext.Update) error
- func WatchHandler(ctx *ext.Context, update *ext.Update) error
- type Bot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermissionsHandler ¶
func SyncPeersHandler ¶ added in v0.13.0
Types ¶
type Bot ¶
type Bot struct {
Client *gotgproto.Client
UserClient *userclient.UserClient
Engine *engine.Engine
// contains filtered or unexported fields
}
func NewBot ¶
func NewBot(ctx context.Context, userClient *userclient.UserClient, engine *engine.Engine) (*Bot, error)
func (*Bot) GetContext ¶ added in v0.12.0
func (*Bot) GetUsername ¶ added in v0.4.0
func (*Bot) RegisterHandlers ¶
Click to show internal directories.
Click to hide internal directories.