fragment

package
v0.0.0-...-aa75ca6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckOrderRequest

type CheckOrderRequest struct {
	Cookie string `header:"cookie"`
	Id     string `form:"id"`
	Method string `form:"method"`
}

type CheckOrderResponse

type CheckOrderResponse struct {
	Confirmed bool `json:"confirmed"`
}

func CheckOrder

func CheckOrder(id string) (result CheckOrderResponse, err error)

CheckOrder 检查订单是否成功

type CheckParams

type CheckParams struct {
	Id string `json:"id"`
}

type GetGiftPremiumLinkRequest

type GetGiftPremiumLinkRequest struct {
	Cookie     string `header:"cookie"`
	Id         string `form:"id"`
	ShowSender int    `form:"show_sender"`
	Months     int    `form:"months"`
	Method     string `form:"method"`
}

type GetGiftPremiumLinkResponse

type GetGiftPremiumLinkResponse struct {
	Ok          bool        `json:"ok"`
	Link        string      `json:"link"`
	QrLink      string      `json:"qr_link"`
	CheckMethod string      `json:"check_method"`
	CheckParams CheckParams `json:"check_params"`
	ExpireAfter int         `json:"expire_after"`
}
func GetGiftPremiumLink(reqId string) (result GetGiftPremiumLinkResponse, err error)

type GetTonPaymentInfoRequest

type GetTonPaymentInfoRequest struct {
	Cookie string `header:"cookie"`
}

type GetTonPaymentInfoResponse

type GetTonPaymentInfoResponse struct {
	Version string `json:"version"`
	Body    struct {
		Type   string `json:"type"`
		Params struct {
			ValidUntil int `json:"valid_until"`
			Messages   []struct {
				Address string `json:"address"`
				Amount  uint64 `json:"amount"`
				Payload string `json:"payload"`
			} `json:"messages"`
			Source string `json:"source"`
		} `json:"params"`
		ResponseOptions struct {
			CallbackURL string `json:"callback_url"`
			Broadcast   bool   `json:"broadcast"`
		} `json:"response_options"`
		ExpiresSec int `json:"expires_sec"`
	} `json:"body"`
}

func GetTonPaymentInfo

func GetTonPaymentInfo(id string) (result GetTonPaymentInfoResponse, err error)

GetTonPaymentInfo GET获取收款地址和 payload参数

type InitGiftPremiumRequest

type InitGiftPremiumRequest struct {
	Cookie    string `header:"cookie"`
	Recipient string `form:"recipient"`
	Months    int    `form:"months"`
	Method    string `form:"method"`
}

type InitGiftPremiumResponse

type InitGiftPremiumResponse struct {
	ReqId     string `json:"req_id"`
	Myself    bool   `json:"myself"`
	Amount    string `json:"amount"`
	ItemTitle string `json:"item_title"`
	Content   string `json:"content"`
	Button    string `json:"button"`
}

func InitGiftPremium

func InitGiftPremium(recipient string, duration int) (result InitGiftPremiumResponse, err error)

type SearchPremiumGiftRecipientRequest

type SearchPremiumGiftRecipientRequest struct {
	Cookie string `header:"cookie"`
	Query  string `form:"query"`
	Months int    `form:"months"`
	Method string `form:"method"`
}

type SearchPremiumGiftRecipientResponse

type SearchPremiumGiftRecipientResponse struct {
	Ok    bool                                   `json:"ok"`
	Error string                                 `json:"error"`
	Found SearchPremiumGiftRecipientResponseBody `json:"found"`
}

func SearchPremiumGiftRecipient

func SearchPremiumGiftRecipient(username string, duration int) (result SearchPremiumGiftRecipientResponse, err error)

SearchPremiumGiftRecipient telegram用户名查询

type SearchPremiumGiftRecipientResponseBody

type SearchPremiumGiftRecipientResponseBody struct {
	Myself    bool   `json:"myself"`
	Recipient string `json:"recipient"`
	Photo     string `json:"photo"`
	Name      string `json:"name"`
}

Jump to

Keyboard shortcuts

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