Documentation ¶
Index ¶
- Constants
- func CreateBasicReplyHandlerFunc(clientAwk api.Client, groupId string, svcReader reader.Service, ...) service.ArgHandlerFunc
- func CreateBasicRequest(tgCtx telebot.Context) (err error)
- func DescriptionHandlerFunc(clientAwk api.Client, groupId string) service.ArgHandlerFunc
- func DescriptionReplyHandlerFunc(clientAwk api.Client, groupId string) service.ArgHandlerFunc
- func ListOnGroupStartHandlerFunc(clientAwk api.Client, svcReader reader.Service, ...) telebot.HandlerFunc
- func ListPublicHandlerFunc(clientAwk api.Client, svcReader reader.Service, ...) telebot.HandlerFunc
- func PageNext(clientAwk api.Client, svcReader reader.Service, ...) service.ArgHandlerFunc
- func Start(tgCtx telebot.Context, clientAwk api.Client, svcReader reader.Service, ...) (err error)
- func StartHandler(clientAwk api.Client, svcReader reader.Service, urlCallbackBase string, ...) service.ArgHandlerFunc
- func Stop(svcReader reader.Service, urlCallbackBase string) service.ArgHandlerFunc
- type ConditionHandler
- type ExtendHandler
- func (eh ExtendHandler) ExtendPaid(tgCtx telebot.Context, args ...string) (err error)
- func (eh ExtendHandler) ExtensionPreCheckout(tgCtx telebot.Context, args ...string) (err error)
- func (eh ExtendHandler) HandleExtensionReply(tgCtx telebot.Context, args ...string) (err error)
- func (eh ExtendHandler) RequestExtensionDaysCount(tgCtx telebot.Context, args ...string) (err error)
- type ExtendOrder
Constants ¶
View Source
const CmdDescription = "description"
View Source
const CmdExtend = "extend"
View Source
const CmdPageNext = "subs_next"
View Source
const CmdStart = "sub_start"
View Source
const CmdStop = "sub_stop"
View Source
const MsgFmtChatLinked = "Following the interest \"%s\" in this chat. " +
"New results will appear here. " +
"To manage own interests use the <a href=\"https://awakari.com/login.html\" target=\"blank\">app</a>."
View Source
const PurposeExtend = "sub_extend"
View Source
const ReqDescribe = "sub_describe"
View Source
const ReqSubCreate = "sub_create"
View Source
const ReqSubExtend = "sub_extend"
Variables ¶
This section is empty.
Functions ¶
func CreateBasicRequest ¶
func CreateBasicRequest(tgCtx telebot.Context) (err error)
func DescriptionHandlerFunc ¶
func DescriptionHandlerFunc(clientAwk api.Client, groupId string) service.ArgHandlerFunc
func DescriptionReplyHandlerFunc ¶
func DescriptionReplyHandlerFunc(clientAwk api.Client, groupId string) service.ArgHandlerFunc
func ListPublicHandlerFunc ¶
func StartHandler ¶
Types ¶
type ConditionHandler ¶
func (ConditionHandler) Update ¶
func (ch ConditionHandler) Update(tgCtx telebot.Context, args ...string) (err error)
type ExtendHandler ¶
type ExtendHandler struct { CfgPayment config.PaymentConfig ClientAwk api.Client GroupId string Log *slog.Logger }
func (ExtendHandler) ExtendPaid ¶
func (eh ExtendHandler) ExtendPaid(tgCtx telebot.Context, args ...string) (err error)
func (ExtendHandler) ExtensionPreCheckout ¶
func (eh ExtendHandler) ExtensionPreCheckout(tgCtx telebot.Context, args ...string) (err error)
func (ExtendHandler) HandleExtensionReply ¶
func (eh ExtendHandler) HandleExtensionReply(tgCtx telebot.Context, args ...string) (err error)
func (ExtendHandler) RequestExtensionDaysCount ¶
func (eh ExtendHandler) RequestExtensionDaysCount(tgCtx telebot.Context, args ...string) (err error)
type ExtendOrder ¶
Click to show internal directories.
Click to hide internal directories.