subbot

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdmin added in v0.15.0

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

func DelSubBot

func DelSubBot(ctx context.Context, botID int64) 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 SearchCallbackHandler

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

func SearchHandler

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

func StartHandler

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

func StartStored

func StartStored(ctx context.Context) error

Types

type SubBot

type SubBot struct {
	Client *mygotg.Client
	ID     int64
	Name   string
}

func GetAll

func GetAll() []*SubBot

func GetSubBot

func GetSubBot(ctx context.Context, botID int64) (*SubBot, error)

func NewSubBot

func NewSubBot(ctx context.Context, token string, chats []int64) (*SubBot, error)

func (*SubBot) Start

func (s *SubBot) Start()

func (*SubBot) Stop

func (s *SubBot) Stop()

type SubBotKey added in v0.5.0

type SubBotKey struct{}

Jump to

Keyboard shortcuts

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