subbot

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermission

func CheckPermission(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 SearchCallbackHandler

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

func SearchHandler

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

yes i have no insterest in code reuse and just want it work :D

func StartHandler

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

func StartStored

func StartStored(ctx context.Context) (map[int64]*SubBot, error)

Types

type SubBot

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

func GetAll

func GetAll(ctx context.Context) []*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