Source File
tl_payments_get_saved_info_gen.go
Belonging Package
github.com/gotd/td/tg
// Code generated by gotdgen, DO NOT EDIT.package tgimport ()// No-op definition for keeping imports.var (_ = bin.Buffer{}_ = context.Background()_ = fmt.Stringer(nil)_ = strings.Builder{}_ = errors.Is_ = multierr.AppendInto_ = sort.Ints_ = tdp.Format_ = tgerr.Error{}_ = tdjson.Encoder{})// PaymentsGetSavedInfoRequest represents TL type `payments.getSavedInfo#227d824b`.// Get saved payment information//// See https://core.telegram.org/method/payments.getSavedInfo for reference.type PaymentsGetSavedInfoRequest struct {}// PaymentsGetSavedInfoRequestTypeID is TL type id of PaymentsGetSavedInfoRequest.const PaymentsGetSavedInfoRequestTypeID = 0x227d824b// Ensuring interfaces in compile-time for PaymentsGetSavedInfoRequest.var (_ bin.Encoder = &PaymentsGetSavedInfoRequest{}_ bin.Decoder = &PaymentsGetSavedInfoRequest{}_ bin.BareEncoder = &PaymentsGetSavedInfoRequest{}_ bin.BareDecoder = &PaymentsGetSavedInfoRequest{})func ( *PaymentsGetSavedInfoRequest) () bool {if == nil {return true}return true}// String implements fmt.Stringer.func ( *PaymentsGetSavedInfoRequest) () string {if == nil {return "PaymentsGetSavedInfoRequest(nil)"}type PaymentsGetSavedInfoRequestreturn fmt.Sprintf("PaymentsGetSavedInfoRequest%+v", (*))}// TypeID returns type id in TL schema.//// See https://core.telegram.org/mtproto/TL-tl#remarks.func (*PaymentsGetSavedInfoRequest) () uint32 {return PaymentsGetSavedInfoRequestTypeID}// TypeName returns name of type in TL schema.func (*PaymentsGetSavedInfoRequest) () string {return "payments.getSavedInfo"}// TypeInfo returns info about TL type.func ( *PaymentsGetSavedInfoRequest) () tdp.Type {:= tdp.Type{Name: "payments.getSavedInfo",ID: PaymentsGetSavedInfoRequestTypeID,}if == nil {.Null = truereturn}.Fields = []tdp.Field{}return}// Encode implements bin.Encoder.func ( *PaymentsGetSavedInfoRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode payments.getSavedInfo#227d824b as nil")}.PutID(PaymentsGetSavedInfoRequestTypeID)return .EncodeBare()}// EncodeBare implements bin.BareEncoder.func ( *PaymentsGetSavedInfoRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode payments.getSavedInfo#227d824b as nil")}return nil}// Decode implements bin.Decoder.func ( *PaymentsGetSavedInfoRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode payments.getSavedInfo#227d824b to nil")}if := .ConsumeID(PaymentsGetSavedInfoRequestTypeID); != nil {return fmt.Errorf("unable to decode payments.getSavedInfo#227d824b: %w", )}return .DecodeBare()}// DecodeBare implements bin.BareDecoder.func ( *PaymentsGetSavedInfoRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode payments.getSavedInfo#227d824b to nil")}return nil}// PaymentsGetSavedInfo invokes method payments.getSavedInfo#227d824b returning error if any.// Get saved payment information//// See https://core.telegram.org/method/payments.getSavedInfo for reference.func ( *Client) ( context.Context) (*PaymentsSavedInfo, error) {var PaymentsSavedInfo:= &PaymentsGetSavedInfoRequest{}if := .rpc.Invoke(, , &); != nil {return nil,}return &, nil}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |