subscriptions

package
v0.0.0-...-de4f3ac Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

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 CreateBasicReplyHandlerFunc

func CreateBasicReplyHandlerFunc(
	clientAwk api.Client,
	groupId string,
	svcReader reader.Service,
	urlCallbackBase string,
) service.ArgHandlerFunc

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 ListOnGroupStartHandlerFunc

func ListOnGroupStartHandlerFunc(clientAwk api.Client, svcReader reader.Service, groupId, urlCallBackBase string) telebot.HandlerFunc

func ListPublicHandlerFunc

func ListPublicHandlerFunc(clientAwk api.Client, svcReader reader.Service, groupId, urlCallBackBase string) telebot.HandlerFunc

func PageNext

func PageNext(clientAwk api.Client, svcReader reader.Service, groupId, urlCallBackBase string) service.ArgHandlerFunc

func Start

func Start(
	tgCtx telebot.Context,
	clientAwk api.Client,
	svcReader reader.Service,
	urlCallbackBase string,
	subId string,
	groupId string,
) (err error)

func StartHandler

func StartHandler(
	clientAwk api.Client,
	svcReader reader.Service,
	urlCallbackBase string,
	groupId string,
) service.ArgHandlerFunc

func Stop

func Stop(svcReader reader.Service, urlCallbackBase string) service.ArgHandlerFunc

Types

type ConditionHandler

type ConditionHandler struct {
	ClientAwk api.Client
	GroupId   string
}

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

type ExtendOrder struct {
	SubId   string `json:"subId"`
	DaysAdd uint64 `json:"daysAdd"`
}

Jump to

Keyboard shortcuts

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