Documentation ¶
Index ¶
- Constants
- func Callback(handlers map[string]ArgHandlerFunc) telebot.HandlerFunc
- func DonationHandler(ctx telebot.Context) (err error)
- func DonationMessage(ctx telebot.Context, msgTxt string) (msg *telebot.Message, err error)
- func DonationMessagePin(ctx telebot.Context) (err error)
- func ErrorHandlerFunc(h telebot.HandlerFunc) telebot.HandlerFunc
- func LoggingHandlerFunc(next telebot.HandlerFunc, log *slog.Logger) telebot.HandlerFunc
- type ArgHandlerFunc
- type RootHandler
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 DonationMessagePin ¶
func DonationMessagePin(ctx telebot.Context) (err error)
func ErrorHandlerFunc ¶
func ErrorHandlerFunc(h telebot.HandlerFunc) telebot.HandlerFunc
func LoggingHandlerFunc ¶
Types ¶
type ArgHandlerFunc ¶
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)
Click to show internal directories.
Click to hide internal directories.