Documentation ¶
Index ¶
- Constants
- func FormatUsageLimit(subj string, u usage.Usage, l usage.Limit) (txt string)
- type LimitsHandler
- func (lh LimitsHandler) HandleExtension(tgCtx telebot.Context, args ...string) (err error)
- func (lh LimitsHandler) HandleIncrease(tgCtx telebot.Context, args ...string) (err error)
- func (lh LimitsHandler) HandleLimitOrderPaid(tgCtx telebot.Context, args ...string) (err error)
- func (lh LimitsHandler) IncreasePreCheckout(tgCtx telebot.Context, args ...string) (err error)
- func (lh LimitsHandler) PreCheckout(tgCtx telebot.Context, args ...string) (err error)
- func (lh LimitsHandler) RequestExtension(tgCtx telebot.Context, args ...string) (err error)
- func (lh LimitsHandler) RequestIncrease(tgCtx telebot.Context, args ...string) (err error)
- type OrderLimit
Constants ¶
View Source
const CmdExtend = "lim_extend"
View Source
const CmdIncrease = "lim_incr"
View Source
const ExpiresDefaultDays = 30
View Source
const LabelExtend = "▲ Extend Time"
View Source
const LabelIncrease = "▲ Increase Limit"
View Source
const PurposeLimitSet = "lim_set"
View Source
const ReqLimitExtend = "lim_extend_req"
View Source
const ReqLimitIncrease = "lim_incr_req"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LimitsHandler ¶
type LimitsHandler struct { CfgPayment config.PaymentConfig ClientAdmin admin.Service ClientAwk api.Client GroupId string Log *slog.Logger SupportHandler support.Handler }
func (LimitsHandler) HandleExtension ¶
func (lh LimitsHandler) HandleExtension(tgCtx telebot.Context, args ...string) (err error)
func (LimitsHandler) HandleIncrease ¶
func (lh LimitsHandler) HandleIncrease(tgCtx telebot.Context, args ...string) (err error)
func (LimitsHandler) HandleLimitOrderPaid ¶
func (lh LimitsHandler) HandleLimitOrderPaid(tgCtx telebot.Context, args ...string) (err error)
func (LimitsHandler) IncreasePreCheckout ¶
func (lh LimitsHandler) IncreasePreCheckout(tgCtx telebot.Context, args ...string) (err error)
func (LimitsHandler) PreCheckout ¶
func (lh LimitsHandler) PreCheckout(tgCtx telebot.Context, args ...string) (err error)
func (LimitsHandler) RequestExtension ¶
func (lh LimitsHandler) RequestExtension(tgCtx telebot.Context, args ...string) (err error)
func (LimitsHandler) RequestIncrease ¶
func (lh LimitsHandler) RequestIncrease(tgCtx telebot.Context, args ...string) (err error)
Click to show internal directories.
Click to hide internal directories.