bot

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: GPL-3.0 Imports: 30 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 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 InlineQueryHandler added in v0.15.0

func InlineQueryHandler(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 SyncPeersHandler added in v0.13.0

func SyncPeersHandler(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
	// contains filtered or unexported fields
}

func GetBot added in v0.12.0

func GetBot() *Bot

func NewBot

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

func (*Bot) GetContext added in v0.12.0

func (b *Bot) GetContext() *ext.Context

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