plugins

package
v0.0.0-...-189dd48 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dispatcher *ext.Dispatcher = ext.NewDispatcher(&ext.DispatcherOpts{

	Error: func(b *gotgbot.Bot, ctx *ext.Context, err error) ext.DispatcherAction {
		fmt.Println("an error occurred while handling update:", err.Error())
		return ext.DispatcherActionNoop
	},
	MaxRoutines: ext.DefaultMaxRoutines,
})

Functions

func Batch

func Batch(bot *gotgbot.Bot, ctx *ext.Context) error

Batch handles the /batch command.

func CbCommand

func CbCommand(bot *gotgbot.Bot, ctx *ext.Context) error

CbCommand handles callback from command buttons.

func CommandHandler

func CommandHandler(bot *gotgbot.Bot, ctx *ext.Context) error

CommandHandler any unhandled commands

func GenLink(bot *gotgbot.Bot, ctx *ext.Context) error

GenLink handles the /genlink command.

func ID

func ID(bot *gotgbot.Bot, ctx *ext.Context) error

ID handles the id command.

func Start

func Start(bot *gotgbot.Bot, ctx *ext.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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