telegram

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const AdminOrderDaily = `` /* 474-byte string literal not displayed */

AdminOrderDaily 管理员每日订单统计

View Source
const AdminOrderNotify = `` /* 353-byte string literal not displayed */

AdminOrderNotify 管理员订单通知

View Source
const BindNotify = `` /* 247-byte string literal not displayed */
View Source
const PurchaseNotify = `` /* 388-byte string literal not displayed */
View Source
const RechargeNotify = `` /* 368-byte string literal not displayed */

RechargeNotify 充值通知

View Source
const RenewalNotify = `` /* 388-byte string literal not displayed */
View Source
const ResetTrafficNotify = `` /* 341-byte string literal not displayed */

ResetTrafficNotify 重置流量通知

View Source
const SubscribeExpireNotify = `` /* 292-byte string literal not displayed */

SubscribeExpireNotify 订阅到期通知

View Source
const UnbindNotify = `` /* 353-byte string literal not displayed */

UnbindNotify 解绑通知

Variables

This section is empty.

Functions

func ApiLink(ctx *gin.Context, svcCtx *svc.ServiceContext, method string) string

func GetTelegramConfig

func GetTelegramConfig(ctx context.Context, svcCtx *svc.ServiceContext) (*types.TelegramConfig, error)

func SendAdminMessage

func SendAdminMessage(ctx *gin.Context, svcCtx *svc.ServiceContext, text string, parseMode string)

func SendUserMessage

func SendUserMessage(ctx *gin.Context, svcCtx *svc.ServiceContext, u user.User, text string, parseMode string)

func SetWebhook

func SetWebhook(ctx *gin.Context, svcCtx *svc.ServiceContext) error

Types

type TelegramLogic

type TelegramLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewTelegramLogic

func NewTelegramLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TelegramLogic

func (*TelegramLogic) TelegramLogic

func (l *TelegramLogic) TelegramLogic(req *tgbotapi.Update)

Jump to

Keyboard shortcuts

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