Source File
tl_wallet_get_existing_walt_balance_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{})// WalletGetExistingWaltBalanceRequest represents TL type `wallet.getExistingWaltBalance#691f4360`.//// See https://core.telegram.org/method/wallet.getExistingWaltBalance for reference.type WalletGetExistingWaltBalanceRequest struct {}// WalletGetExistingWaltBalanceRequestTypeID is TL type id of WalletGetExistingWaltBalanceRequest.const WalletGetExistingWaltBalanceRequestTypeID = 0x691f4360// Ensuring interfaces in compile-time for WalletGetExistingWaltBalanceRequest.var (_ bin.Encoder = &WalletGetExistingWaltBalanceRequest{}_ bin.Decoder = &WalletGetExistingWaltBalanceRequest{}_ bin.BareEncoder = &WalletGetExistingWaltBalanceRequest{}_ bin.BareDecoder = &WalletGetExistingWaltBalanceRequest{})func ( *WalletGetExistingWaltBalanceRequest) () bool {if == nil {return true}return true}// String implements fmt.Stringer.func ( *WalletGetExistingWaltBalanceRequest) () string {if == nil {return "WalletGetExistingWaltBalanceRequest(nil)"}type WalletGetExistingWaltBalanceRequestreturn fmt.Sprintf("WalletGetExistingWaltBalanceRequest%+v", (*))}// TypeID returns type id in TL schema.//// See https://core.telegram.org/mtproto/TL-tl#remarks.func (*WalletGetExistingWaltBalanceRequest) () uint32 {return WalletGetExistingWaltBalanceRequestTypeID}// TypeName returns name of type in TL schema.func (*WalletGetExistingWaltBalanceRequest) () string {return "wallet.getExistingWaltBalance"}// TypeInfo returns info about TL type.func ( *WalletGetExistingWaltBalanceRequest) () tdp.Type {:= tdp.Type{Name: "wallet.getExistingWaltBalance",ID: WalletGetExistingWaltBalanceRequestTypeID,}if == nil {.Null = truereturn}.Fields = []tdp.Field{}return}// Encode implements bin.Encoder.func ( *WalletGetExistingWaltBalanceRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode wallet.getExistingWaltBalance#691f4360 as nil")}.PutID(WalletGetExistingWaltBalanceRequestTypeID)return .EncodeBare()}// EncodeBare implements bin.BareEncoder.func ( *WalletGetExistingWaltBalanceRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode wallet.getExistingWaltBalance#691f4360 as nil")}return nil}// Decode implements bin.Decoder.func ( *WalletGetExistingWaltBalanceRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode wallet.getExistingWaltBalance#691f4360 to nil")}if := .ConsumeID(WalletGetExistingWaltBalanceRequestTypeID); != nil {return fmt.Errorf("unable to decode wallet.getExistingWaltBalance#691f4360: %w", )}return .DecodeBare()}// DecodeBare implements bin.BareDecoder.func ( *WalletGetExistingWaltBalanceRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode wallet.getExistingWaltBalance#691f4360 to nil")}return nil}// WalletGetExistingWaltBalance invokes method wallet.getExistingWaltBalance#691f4360 returning error if any.//// See https://core.telegram.org/method/wallet.getExistingWaltBalance for reference.func ( *Client) ( context.Context) (*WalletExistingBalance, error) {var WalletExistingBalance:= &WalletGetExistingWaltBalanceRequest{}if := .rpc.Invoke(, , &); != nil {return nil,}return &, nil}
![]() |
The pages are generated with Golds v0.8.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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |