service

package
v0.0.0-...-c98022d Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CmdLimit = 64
View Source
const FmtNamePub = "https://t.me/%s"
View Source
const FmtUserId = "tg://user?id=%d"
View Source
const KeyGroupId = "X-Awakari-Group-Id"
View Source
const PageLimit = 10
View Source
const PrefixUserId = "tg://user?id="

Variables

This section is empty.

Functions

func Callback

func Callback(handlers map[string]ArgHandlerFunc) telebot.HandlerFunc

func DonationHandler

func DonationHandler(ctx telebot.Context) (err error)

func DonationMessage

func DonationMessage(ctx telebot.Context, msgTxt string) (msg *telebot.Message, err error)

func DonationMessagePin

func DonationMessagePin(ctx telebot.Context) (err error)

func ErrorHandlerFunc

func ErrorHandlerFunc(h telebot.HandlerFunc) telebot.HandlerFunc

func LoggingHandlerFunc

func LoggingHandlerFunc(next telebot.HandlerFunc, log *slog.Logger) telebot.HandlerFunc

Types

type ArgHandlerFunc

type ArgHandlerFunc func(tgCtx telebot.Context, args ...string) (err error)

type RootHandler

type RootHandler struct {
	ReplyHandlers  map[string]ArgHandlerFunc
	ForwardHandler telebot.HandlerFunc
	TxtHandlers    map[string]telebot.HandlerFunc
}

func (RootHandler) Handle

func (h RootHandler) Handle(tgCtx telebot.Context) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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