bot

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(ctx *ext.Context, update *ext.Update) error

func AddSubHandler

func AddSubHandler(ctx *ext.Context, update *ext.Update) error

func CheckPermission

func CheckPermission(ctx *ext.Context, update *ext.Update) bool

func CheckPermissionsHandler

func CheckPermissionsHandler(ctx *ext.Context, update *ext.Update) error

func DelHandler

func DelHandler(ctx *ext.Context, update *ext.Update) error

func DelSubHandler

func DelSubHandler(ctx *ext.Context, update *ext.Update) error

func DownloadHandler

func DownloadHandler(ctx *ext.Context, update *ext.Update) error

func FilterCallbackHandler

func FilterCallbackHandler(ctx *ext.Context, update *ext.Update) error

func ListHandler

func ListHandler(ctx *ext.Context, update *ext.Update) error

func ListSubHandler

func ListSubHandler(ctx *ext.Context, update *ext.Update) error

func PubHandler

func PubHandler(ctx *ext.Context, update *ext.Update) error

func SearchCallbackHandler

func SearchCallbackHandler(ctx *ext.Context, update *ext.Update) error

func SearchHandler

func SearchHandler(ctx *ext.Context, update *ext.Update) error

func SelectCallbackHandler

func SelectCallbackHandler(ctx *ext.Context, update *ext.Update) error

func StartHandler

func StartHandler(ctx *ext.Context, update *ext.Update) error

func UnPubHandler

func UnPubHandler(ctx *ext.Context, update *ext.Update) error

func UnWatchDelHandler

func UnWatchDelHandler(ctx *ext.Context, update *ext.Update) error

func UnWatchHandler

func UnWatchHandler(ctx *ext.Context, update *ext.Update) error

func WatchDelHandler

func WatchDelHandler(ctx *ext.Context, update *ext.Update) error

func WatchHandler

func WatchHandler(ctx *ext.Context, update *ext.Update) error

Types

type Bot

type Bot struct {
	Client     *gotgproto.Client
	UserClient *userclient.UserClient
	Engine     *engine.Engine
}
var BotInstance *Bot

func NewBot

func NewBot(ctx context.Context, userClient *userclient.UserClient, engine *engine.Engine) (*Bot, error)

func (*Bot) GetUsername added in v0.4.0

func (b *Bot) GetUsername() string

func (*Bot) RegisterHandlers

func (b *Bot) RegisterHandlers(ctx context.Context)

func (*Bot) Start

func (b *Bot) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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